SFML community forums
Help => General => Topic started by: Dehumanizer on November 11, 2014, 07:35:47 pm
-
Hello.
Every time I build SFML from sources I also need to link dependencies like opengl32, winmm etc. My question is, how official builds (from http://sfml-dev.org/download/sfml/2.1/ (http://sfml-dev.org/download/sfml/2.1/)) are built, that they don't force me to link any other library than sfml-graphics, sfml-window etc?
Thank you.
-
Note: This applies only to static linking.
The change was made a while ago, so it builds correctly and allows for more flexibility. The old way work by unpacking the static libraries and linking the object files directly into the libraries. This is really bad practice and can lead to different issues.
-
So, there's no nice way to integrate external dependencies with sfml lib files?
-
No, because that's not how things should work. See here (https://github.com/SFML/SFML/wiki/FAQ#build-link-static).