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

Author Topic: SFML 2.0 linker error  (Read 1296 times)

0 Members and 3 Guests are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML 2.0 linker error
« on: July 29, 2011, 11:22:43 am »
Hi

I've put my game framework into a static lib, and use that library alongside game-specific files (to hide the stuff that never changes between each game).

However on linking, I have the following error:

Code: [Select]
1>Linking...
1>sfml-main-d.lib(SFML_Main.obj) : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16


Any ideas? The static lib compiles fine, but the actual game program doesn't :(

Thanks
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 linker error
« Reply #1 on: July 29, 2011, 11:57:41 am »
Is sfml-main linked to the library or to the game?
Laurent Gomila - SFML developer

 

anything