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?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to