[fpc-pascal] freepascal + mysql5 + osx
Harald Lapp
harald.lapp at gmail.com
Mon Jun 23 11:08:28 CEST 2008
2008/6/23 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>
> On 23 Jun 2008, at 08:47, Harald Lapp wrote:
>
>> 2008/6/22 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>>>
>>
>>> 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.
>>
>> this solved my problem -- thanks very much!!
>
> It did? I've now googled a bit and it seems that mysql50 cannot be the
> correct name. Did you perhaps use another name in your linklib statement?
yes, i first tried with {$linklib mysql50}, but that did not work.
than i thought, maybe
it needs the name of the clientlib, and when i tried {$linklib
libmysqlclient} it
suddenly worked.
as i'm new to freepascal i'm not sure, what the linker is looking for.
for example:
i tried symlinking my libmysqlclient.dylib to mysql50.dylib and that did not
work.
harald
More information about the fpc-pascal
mailing list