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

Author Topic: cannot open include file: "SFML/graphics.hpp error, when trying to dynamic link  (Read 28953 times)

0 Members and 1 Guest are viewing this topic.

darbycrashgi

  • Newbie
  • *
  • Posts: 6
    • View Profile
I get a: cannot open include file: "SFML/graphics.hpp no such a file error when trying to dynamic link, I think this means I messed up when installing sfml, but I can't find where.
I've told the compiler where to find the header:


I've linked to the libraries:


And i've included the dlls:

I'm trying to run the testcode from the tutorial, on visual 2015, on windows 8
Anybody knows what goes wrong?
« Last Edit: February 23, 2016, 01:25:03 pm by darbycrashgi »

ramaskrik

  • Newbie
  • *
  • Posts: 45
    • View Profile
It seems the problem is in the preprocessor-parsing stage, (not linking stage), as it cannot find an SFML header. Have you copied the SFML hpp files into the C:\Users\merijin\Documents\sfml\lib? Didn't you want to put there something like C:\Users\merijin\Documents\sfml\include?

darbycrashgi

  • Newbie
  • *
  • Posts: 6
    • View Profile
It seems the problem is in the preprocessor-parsing stage, (not linking stage), as it cannot find an SFML header. Have you copied the SFML hpp files into the C:\Users\merijin\Documents\sfml\lib? Didn't you want to put there something like C:\Users\merijin\Documents\sfml\include?
I copied the sfml folder from C:\Users\merijin\Documents\sfml\include into C:\Users\merijin\Documents\sfml\lib, still doesn't work 

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
does
C:\Users\merijin\Documents\sfml\include

contain a folder named
SFML

and does that folder contain a file named Graphics.hpp

and can you make a screenshot of your error message

and can you post a screenshot of your
C:\Users\merijin\Documents\sfml\include\SFML

and can you post the screenshots on http://imgur.com/


some of your screenshots are a little blurry
I've tried opening them in a new window and zooming in, but that only made it worse.

darbycrashgi

  • Newbie
  • *
  • Posts: 6
    • View Profile
does
C:\Users\merijin\Documents\sfml\include

contain a folder named
SFML

and does that folder contain a file named Graphics.hpp

and can you make a screenshot of your error message

and can you post a screenshot of your
C:\Users\merijin\Documents\sfml\include\SFML

and can you post the screenshots on http://imgur.com/


some of your screenshots are a little blurry
I've tried opening them in a new window and zooming in, but that only made it worse.
yes to all of that
here's a link to the imgurfolder: http://imgur.com/a/I9iaA

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Your path needs to include the SFML-2.3.2 as shown in your explorer window.
« Last Edit: February 24, 2016, 01:21:49 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

darbycrashgi

  • Newbie
  • *
  • Posts: 6
    • View Profile
Your path needs to include the SFML-2.3.2 as shown in your explorer window.
ok it works now! thanks everyone for their help.

 

anything