Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Can not include lib from SFML VS 2012
Print
Pages: [
1
]
Author
Topic: Can not include lib from SFML VS 2012 (Read 1615 times)
0 Members and 1 Guest are viewing this topic.
aratnon
Newbie
Posts: 24
Can not include lib from SFML VS 2012
«
on:
March 13, 2013, 12:02:47 pm »
I download SFML from this site
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]
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: Can not include lib from SFML VS 2012
«
Reply #1 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.
You've added it where I've made a blue cross, but it needs to be above that line.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
aratnon
Newbie
Posts: 24
Re: Can not include lib from SFML VS 2012
«
Reply #2 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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Can not include lib from SFML VS 2012
«
Reply #3 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...
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Can not include lib from SFML VS 2012
anything