Hello,
I think this problem is not related to the library itself, but I'm hoping to get some support here anyway. I got the RC (C-binding) from the download section and copied the folder to my project location. After I included the libraries and include directory to my project properties in Netbeans, it now generates following gcc call to compile the application:
gcc -o dist/Debug/GNU-Linux-x86/netspace build/Debug/GNU-Linux-x86/main.o -Lsfml/lib -Wl,-rpath sfml/lib -lcsfml-audio -lcsfml-graphics -lcsfml-network -lcsfml-system -lcsfml-window
ld's response is this:
/usr/bin/ld: warning: libsfml-graphics.so.2, needed by sfml/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-window.so.2, needed by sfml/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-system.so.2, needed by sfml/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
And tons of undefined reference, like
sfml/lib/libcsfml-graphics.so: undefined reference to `sf::Window::getPosition() const'
How to solve this? The -rpath option is set to sfml/lib, the location of all *.so and *.so.2 files (so they're in the -rpath). Why doesn't ld find those libraries?
Thanks for any response