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

Author Topic: [Visual Studio] don't have SFML in #include  (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

Jadw1

  • Newbie
  • *
  • Posts: 2
    • View Profile
[Visual Studio] don't have SFML in #include
« on: November 04, 2018, 05:42:49 pm »
Hi,
I have some weird problem. I have a few project with SFML and everything is fine. But, I've just created new project and as always I've setted up everything (additional include directories, library directories and dependencies) but Visual can't see SFML include when i type #include<SFML/ and returns me an error. I've done this several times, even following yt tutorial but still it doesn't work :/

Can u help me?

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: [Visual Studio] don't have SFML in #include
« Reply #1 on: November 04, 2018, 09:38:23 pm »
You must have done something differently this time, especially if you got it working before.
Back to C++ gamedev with SFML in May 2023

mickes27

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: [Visual Studio] don't have SFML in #include
« Reply #2 on: November 07, 2018, 10:44:25 pm »
Check if you have right platform Debug/Release as well as 32/64-bit. Probably you configured it for some other options than you are trying to use. You can put us some screenshots from Properties to check

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: [Visual Studio] don't have SFML in #include
« Reply #3 on: November 07, 2018, 10:51:33 pm »
Go into your project's properties and go to "Configuration Properties" -> "C/C++" -> "General" and find "Additional Include Directories" (this part is shown in the tutorial).
If you click the includes directories, a down-arrow should appear; click that and then choose "<Edit...>".
Check both boxes ("Evaluated value:" and "Inherited values:") and make sure that your SFML's include directory is listed.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*