Hello again,
I also tried to compile my main.c test without IDE (I think it's easier to solve the problem this way, but I still dunno what to do), following
this tutorial (just with gcc instead of g++). My file, main.c, is located in CSFML-2.0-rc, so it's in the same folder as include, lib and share are.
Compile:
$ gcc -c main.c -Iinclude
Build executable:
$ gcc main.o -o sfml-app -Llib -lcsfml-graphics
/usr/bin/ld: warning: libsfml-graphics.so.2, needed by lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-window.so.2, needed by lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-system.so.2, needed by lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
lib/libcsfml-graphics.so: undefined reference to `sf::Window::getPosition() const'
lib/libcsfml-graphics.so: undefined reference to `sf::String::toAnsiString(std::locale const&) const'
...
So it's the same result, just without the overhead from the IDE.
The error message tells me to use the -rpath option, but I neither know how to use it nor what exactly the option does. Since the error is not related to runtime (isn't it?), why must I set the "runtime" path?
EDIT: I tried to involve the -rpath option this way:
daniel@daniel-desktop:~/CSFML-2.0-rc$ gcc main.o -o sfml-app -Llib -lcsfml-graphics -Wl,-rpath /home/daniel/CSFML-2.0-rc/lib
But it's still the same error.