[fpc-pascal] bridging an C++ shared library statically

Michael Van Canneyt michael at freepascal.org
Sat Sep 21 16:58:12 CEST 2013



On Sat, 21 Sep 2013, Xiangrong Fang wrote:

> Ok, but when I added these:
> 
> 
> implementation
> {$linklib libthostintf.a}
> {$linklib thostmduserapi.so}
> end.
> 
> I got:
> 
> /usr/bin/ld: cannot find -lthostmduserapi
> 
> All the required .so and .a file are in CURRENT dir.

1) Did you give the correct name ? 
2) Is the current dir in the linker search path ? AFAIK the current dir is by default not in the linker search path.


Michael.



More information about the fpc-pascal mailing list