[fpc-pascal] using static linking of dylib in mac 10.5

Guru Kathiresan gururamnath at yahoo.com
Sun Oct 19 20:54:23 CEST 2008


Hello,

I'm not able to do a static link of a dylib (with the latest lazarus + fpc
build). 

 

I'm using the following code:

 

function MyDyLibFunction: int; cdecl; external 'mylib.dylib';

 

begin

  MyDyLibFunction;

end;

 

If I use the LoadLibrary function to load the 'mylib.dylib' I'm getting a
valid TLibHandle. Also the nm list MyDyLibFunction function (with _ prefix)
in the library.

 

Can anyone give a pointer on how to make fpc statically link my shared
library in mac osx?

 

Thanks,

Guru Kathiresan

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20081019/863b5785/attachment.html>


More information about the fpc-pascal mailing list