SFML community forums

Help => General => Topic started by: TickingHands on October 12, 2009, 07:36:23 pm

Title: Two linker errors (Doing first tutorial)
Post by: TickingHands 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)
Title: Two linker errors (Doing first tutorial)
Post by: Hiura on October 12, 2009, 07:45:25 pm
SFML_DYNAMIC....
Title: Two linker errors (Doing first tutorial)
Post by: Laurent 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.
Title: Two linker errors (Doing first tutorial)
Post by: TickingHands 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.