Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can not include lib from SFML VS 2012  (Read 1552 times)

0 Members and 1 Guest are viewing this topic.

aratnon

  • Newbie
  • *
  • Posts: 24
    • View Profile
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]

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11008
    • View Profile
    • development blog
    • Email
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. ;)
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
    • View Profile
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


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
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...
Laurent Gomila - SFML developer