Thank you for all your answers! I try to figure out your suggestions about sharing shared linked binarys. But there is one thing i still not understand.
Laurent wrote its explained in the getting started tutorial. Maybe i dont understand what he write their, but iam still confused about the compiler command:
-lsfml-graphics -lsfml-window -lsfml-system
how the g++ knows about wich libarys is used? Or better say: How i know wich libary is used? What is happening with this command? Because i have create 4 libarys for static/shared debug/release. My folder /usr/local/lib$ ls looks like this:
libsfml-audio-d.so libsfml-graphics.so.2.0 libsfml-system.so.2
libsfml-audio-d.so.2 libsfml-network-d.so libsfml-system.so.2.0
libsfml-audio-d.so.2.0 libsfml-network-d.so.2 libsfml-window-d.so
libsfml-audio-s.a libsfml-network-d.so.2.0 libsfml-window-d.so.2
libsfml-audio-s-d.a libsfml-network-s.a libsfml-window-d.so.2.0
libsfml-audio.so libsfml-network-s-d.a libsfml-window-s.a
libsfml-audio.so.2 libsfml-network.so libsfml-window-s-d.a
libsfml-audio.so.2.0 libsfml-network.so.2 libsfml-window.so
libsfml-graphics-d.so libsfml-network.so.2.0 libsfml-window.so.2
libsfml-graphics-d.so.2 libsfml-system-d.so libsfml-window.so.2.0
libsfml-graphics-d.so.2.0 libsfml-system-d.so.2 pkgconfig
libsfml-graphics-s.a libsfml-system-d.so.2.0 python2.7
libsfml-graphics-s-d.a libsfml-system-s.a python3.3
libsfml-graphics.so libsfml-system-s-d.a
libsfml-graphics.so.2 libsfml-system.so
And their is no libary called "-lsfml-graphics" . When i use this command, wich libary is in use? the libsfml-graphics-d.so or the libsfml-graphics.so ? Or is this depends by commands i give the compiler . For example:
-lsfml-graphics -lsfml-window -lsfml-system -> compiling the release binarys
-g -lsfml-graphics -lsfml-window -lsfml-system -> compiling the debug binarys
? Or did i missunderstand here something totally?
best regards
!