SFML community forums

Help => General => Topic started by: narita12 on November 04, 2016, 08:48:55 pm

Title: Debug problems :\
Post by: narita12 on November 04, 2016, 08:48:55 pm
I had included in debug: sfml-graphics-s-d.lib;sfml-window-s-d.lib;sfml-system-s-d.lib;winmm.lib;gdi32.lib;opengl32.lib;freetype.lib;jpeg.lib;

And in Release:winmm.lib;gdi32.lib;sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;opengl32.lib;freetype.lib;jpeg.lib;

How can I fix this ? I posted a SS too ^^
Title: Re: Debug problems :\
Post by: G. on November 04, 2016, 09:08:32 pm
Quote from: http://www.sfml-dev.org/tutorials/2.4/start-vc.php
If you chose to create a "Windows application" project, the entry point of your code has to be set to "WinMain" instead of "main". Since it's Windows specific, and your code would therefore not compile on Linux or Mac OS X, SFML provides a way to keep a standard "main" entry point in this case: link your project to the sfml-main module ("sfml-main-d.lib" in Debug, "sfml-main.lib" in Release), the same way you linked sfml-graphics, sfml-window and sfml-system.
Link sfml-main.
Title: Re: Debug problems :\
Post by: narita12 on November 04, 2016, 09:16:02 pm
Thanks ^^