3 Replies - 422 Views - Last Post: 19 April 2013 - 06:57 AM Rate Topic: -----

#1 billh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 13-April 07

VS 2010 express not finding include files

Posted 18 April 2013 - 09:29 AM

Sorry if I'm being a nuisance with all my questions but I wouldn't ask if I hadn't tried to find my own solution first.

I have been trying out SFML and have installed it and set up vs 2010 express to find the correct include and lib files.

When I tried to compile my first attempt I got an error:
fatal error C1083: Cannot open include file: 'SFML/Audio.hpp': No such file or directory

I have checked and the file is there, in the directory specified.

Just as a tryout I altered the line in the source file to remove the "SFML/" part, leaving just Audio.hpp. The compiler then found it.However it then came up with the same error for the next include file and again I found the appropriate line in the code and removed the "SFML/".

This does seem to have the required effect but does this mean I will need to go through every file with this sort of include reference to manually change them?

Hopefully someone can point me in a better direction.
Thanks in advance for any help

This post has been edited by modi123_1: 18 April 2013 - 09:34 AM


Is This A Good Question/Topic? 0
  • +

Replies To: VS 2010 express not finding include files

#2 vividexstance  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 630
  • View blog
  • Posts: 2,109
  • Joined: 31-December 10

Re: VS 2010 express not finding include files

Posted 18 April 2013 - 09:55 AM

You need to setup VS to look in the right location for the files you wish to include. I'm not too familiar with the settings in VS but it shouldn't be to difficult to look on google or msdn to see what settings you need to change. Or someone else on here with more experience in VS can point you in the right direction. You definitely should not need to be editing source files, they're written the way they're supposed to be.
Was This Post Helpful? 0
  • +
  • -

#3 billh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 13-April 07

Re: VS 2010 express not finding include files

Posted 18 April 2013 - 11:53 PM

Thanks for the advice. I will look again at the settings in VS. The setup instructions on the website can be a bit confusing.

I will let you know how I get on.
Was This Post Helpful? 0
  • +
  • -

#4 billh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 13-April 07

Re: VS 2010 express not finding include files

Posted 19 April 2013 - 06:57 AM

Thanks for your advice vividexstance. I managed to change the setup so it now works.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1