I'm running 64-bit Ubuntu, and I've managed to get my code to compile and run, but only by dynamically linking against the SFML libraries at runtime (by setting the environmental variable LD_LIBRARY_PATH to my SFML lib directory).
However, I'd like to statically link SFML into my application, which is where I'm running into problems. I get the following errors:
/usr/bin/ld: cannot find -lsfml-graphics-s
/usr/bin/ld: cannot find -lsfml-window-s
/usr/bin/ld: cannot find -lsfml-system-s
However, if I leave off the -s suffix, I don't have any problems, but I then need to set the LD_LIBRARY_PATH variable at runtime, which is what I'm trying to avoid. So how do I link the SFML libraries into my application statically? I've looked into my SFML lib directory, and I don't see and libraries matching the -s suffix. Does this mean that the current version of SFML 2.0 RC does not come with static libraries? Or do static linking and dynamic linking use the same libraries, and I'm just missing something obvious?
The version of SFML I'm using is the C++ version 2.0 RC available from
this link on the downloads page.