SFML community forums

Help => General => Topic started by: aratnon on March 13, 2013, 12:02:47 pm

Title: Can not include lib from SFML VS 2012
Post by: aratnon on March 13, 2013, 12:02:47 pm
I download SFML from this site http://sfml.my-gate.net/nightly/ (http://sfml.my-gate.net/nightly/) and follow from SFML tutorial to setup project but when i type
#include <SFML/Graphics.hpp>

It tells me cannnot open source file SFML/Graphics.hpp

I upload my project please see it.

Thanks in advance.

[attachment deleted by admin]
Title: Re: Can not include lib from SFML VS 2012
Post by: eXpl0it3r on March 13, 2013, 01:34:02 pm
Well you've chosen the wrong settings for the include directory. You always have to look very closely. ;)

(http://i.imgur.com/yTENNC3.png) (http://i.imgur.com/yTENNC3.png)
You've added it where I've made a blue cross, but it needs to be above that line. ;)
Title: Re: Can not include lib from SFML VS 2012
Post by: aratnon on March 13, 2013, 02:24:16 pm
I do setup project again and it can include header but when I start debug it can not be done.

It says.

Error   1       error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup C:\Users\aratnon\Documents\Visual Studio 2012\Projects\Test_SFML\Test_SFML\MSVCRTD.lib(crtexew.obj)     Test_SFML

Title: Re: Can not include lib from SFML VS 2012
Post by: Laurent on March 13, 2013, 02:37:14 pm
You must link to sfml-main.

Please read the tutorial carefully, the solutions to all your problems are there...