Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Debug problems :\  (Read 1222 times)

0 Members and 1 Guest are viewing this topic.

narita12

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Debug problems :\
« 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 ^^

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Debug problems :\
« Reply #1 on: November 04, 2016, 09:08:32 pm »
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.

narita12

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Debug problems :\
« Reply #2 on: November 04, 2016, 09:16:02 pm »
Thanks ^^