Aug 29, 2013 at 12:44am
Your program can't find the functions located in the .lib.
A common mistake with both SFML and SDL is that 64 bit users link the 64 bit libraries, when they actually should link the 32 bit libraries.
Unless your specifically developing for only 64 bit systems which really no one does.
Aug 29, 2013 at 2:30pm
I just want to know why 64 users have to link with 32 bit libraries
just curious
Aug 29, 2013 at 2:54pm
I have just set up SFML to see what it is like and did the same thing that Lumpkin was talking about. Once I got that fixed it worked fine.
Aug 29, 2013 at 5:07pm
Its not that you have to use 32 bit libs, its that if you use the 64 bit libs you need to change the project configuration to match (x64).
Aug 29, 2013 at 5:49pm
If it isn't to do with 64-bit versus 32-bit libraires...
You mention the paths, but not the libs themselves. Have you also added the necessary libraries to you project?
I have to add the following to get your code to link (debug target, using SFML DLLs).
sfml-main-d.lib
sfml-window-d.lib
sfml-system-d.lib
sfml-graphics-d.lib
Andy
PS Did you create a console app or a Windows app to start off with? I also get
error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
before I add the above libraries to my Windows (GUI) project.
Last edited on Aug 29, 2013 at 6:23pm
Aug 29, 2013 at 7:55pm
I had to put a few of the .dll's in the same folder as the .exe to get it to work too.