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

Author Topic: Two linker errors (Doing first tutorial)  (Read 2260 times)

0 Members and 1 Guest are viewing this topic.

TickingHands

  • Newbie
  • *
  • Posts: 6
    • View Profile
Two linker errors (Doing first tutorial)
« on: October 12, 2009, 07:36:23 pm »
Well I am starting SFML with Visual Studio 2008.

I set up the library and include paths. I also included the sfml-system-d.lib in the Additional Dependencies located in the Linker>Input in the projects properties.

I still get these two errors when I try to compile/debug:
Code: [Select]

Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib

Error 2 fatal error LNK1120: 1 unresolved externals C:\Documents and Settings\User\My Documents\Visual Studio 2008\Projects\SFML_Testing\Debug\SFML_Testing.exe


Am I still missing something? Need more information or pictures?

Thanks in advance. (Sorry if there were plenty of other threads like this, I didn't find the solution in them)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Two linker errors (Doing first tutorial)
« Reply #1 on: October 12, 2009, 07:45:25 pm »
SFML_DYNAMIC....
SFML / OS X developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Two linker errors (Doing first tutorial)
« Reply #2 on: October 12, 2009, 07:51:46 pm »
Hi

Actually there's only 1 error, the second is that there is 1 error ;)

And your error is that you created a Win32 GUI projet, thus with a WinMain entry point, and implemented a main as the entry point. Linking against sfml-main.lib will fix it.
Laurent Gomila - SFML developer

TickingHands

  • Newbie
  • *
  • Posts: 6
    • View Profile
Two linker errors (Doing first tutorial)
« Reply #3 on: October 12, 2009, 07:51:46 pm »
Actually it was a my bad lol.

I have no idea why, but I made it a windows application, not a console. Therefore causing some strange problems...

Well I got it working, thanks for the help though.

 

anything