1
General / Re: Project links to dynamic library just fine, but it won't link to static library
« on: August 25, 2016, 05:07:48 am »
Hi,
as stated in http://www.sfml-dev.org/tutorials/2.4/start-vc.php
Have you tried that??
as stated in http://www.sfml-dev.org/tutorials/2.4/start-vc.php
Quote
If you want to get rid of these DLLs and have SFML directly integrated into your executable, you must link to the static version. Static SFML libraries have the "-s" suffix: "sfml-xxx-s-d.lib" for Debug, and "sfml-xxx-s.lib" for Release.and
In this case, you'll also need to define the SFML_STATIC macro in the preprocessor options of your project.
Quote
Starting from SFML 2.2, when static linking, you will have to link all of SFML's dependencies to your project as well. This means that if you are linking sfml-window-s.lib or sfml-window-s-d.lib for example, you will also have to link opengl32.lib, winmm.lib and gdi32.lib. Some of these dependency libraries might already be listed under "Inherited values", but adding them again yourself shouldn't cause any problems.
Have you tried that??