[fpc-pascal] freepascal + mysql5 + osx

Joost van der Sluis joost at cnoc.nl
Mon Jun 23 11:28:26 CEST 2008


Op zondag 22-06-2008 om 20:41 uur [tijdzone +0200], schreef Jonas Maebe:
> On 22 Jun 2008, at 20:31, Florian Klaempfl wrote:
> 
> > Jonas Maebe schrieb:
> >> Add the following to your program:
> >> {$linklib mysql50}
> >> The reason that this is not necessary on other platforms, is that  
> >> they implicitly add that based on the external declarations. This  
> >> was disabled for Darwin when initially porting FPC to that platform  
> >> because a lot of those external library declarations were wrong  
> >> there. This was never properly resolved later on, hence the need to  
> >> still explicitly add the {$linklib ...} statements for Darwin.
> >
> > It could be added to the mysql 5 unit, no?
> 
> Yes (and similar statements to several other units as well, probably).

In the case of Firebird there are two possible names of the library, and
both are tried. Can I safely add the {$linklib ...} statements for both
libraries, even if one of them doesn't exist on the system?

And will the unit be compilable at all if the library is not installed
on the system?

Joost.




More information about the fpc-pascal mailing list