[fpc-pascal] Where is fpc finding link directories?
Anthony Walter
sysrpl at gmail.com
Fri Dec 11 15:50:46 CET 2015
I am having a problem with fpc picking up linking directories on my
Raspberry Pi.
I have a this lib:
/opt/vc/lib/libGLESv2.so
When I execute "ldconfig -v" it shows both "/opt/vc/lib/" as a ld link
directory, and the file libGLESv2.so as a linkable library.
But when I use this code in a unit:
procedure glActiveTexture(texture: GLenum); external 'libGLESv2.so';
I get this linker error during compile:
/usr/lib/ld: cannot lind -lGLESv2
But when I compile adding -Fl/opt/vc/lib the compile works without error,
What's the deal? Why am I getting the ld error when when "/opt/vc/lib" is
clearly in my linking path?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151211/1e38b475/attachment.html>
More information about the fpc-pascal
mailing list