So just starting getting familiar with SFML and I'm having some trouble understanding the tutorial on their website to setup everything for Visual Studios.
Im currently testing out the VS Ultimate 2012 on this computer. I have moved all the SFML include and lib file to the correct folders in my VS folder. The problem I'm having in this part of the tutorial.
Open your project's options, then go to the linker/Input item. In the Additional dependencies row, add the SFML libraries you are using. |
So yesterday I followed the tutorial to setup the linker and got the following code running by adding sfml-system.lib (I think or it was sfml-system-s.lib).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <SFML\System.hpp>
#include <iostream>
using std::cout;
using std::endl;
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
cout << Clock.GetElapsedTime() << endl;
sf::Sleep(0.5f);
}
return 0;
}
|
But now for the life of me I can't get it to run again so I was wondering if anyone could give me some instructions or maybe explain more how to setup the linking of the SFML libraries. Thanks in advance for the help
Edit: Here is the errors I get while debugging if they can help.
1>------ Build started: Project: SMFL Learning, Configuration: Debug Win32 ------
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Brandon\Documents\Visual Studio 2012\Projects\SMFL Learning\Debug\SMFL Learning.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========