What To Do When Compiler Doesn't Read a .h File?

What To Do When Compiler Doesn't Read a .h File?

Post by F6Zman on Wed Sep 04, 2013 4:20 pm
([msg=77249]see What To Do When Compiler Doesn't Read a .h File?[/msg])

When I try to compile a program's source code, my compilers will give me an error with one of my .h files:

"fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory"

What should I do?
F6Zman
New User
New User
 
Posts: 11
Joined: Tue Aug 13, 2013 9:33 am
Blog: View Blog (0)


Re: What To Do When Compiler Doesn't Read a .h File?

Post by Shade_of_Gray on Wed Sep 04, 2013 5:40 pm
([msg=77250]see Re: What To Do When Compiler Doesn't Read a .h File?[/msg])

When in doubt about an error message, Google it:

https://www.google.com/search?q=%22fata ... ent=safari
Shade_of_Gray
Experienced User
Experienced User
 
Posts: 60
Joined: Mon Oct 22, 2012 11:04 pm
Blog: View Blog (0)


Re: What To Do When Compiler Doesn't Read a .h File?

Post by neolithicLoser on Wed Sep 04, 2013 10:41 pm
([msg=77251]see Re: What To Do When Compiler Doesn't Read a .h File?[/msg])

It looks like 'SDL.h' is not present in include directory.
neolithicLoser
New User
New User
 
Posts: 10
Joined: Sun Jul 14, 2013 1:02 pm
Blog: View Blog (0)


Re: What To Do When Compiler Doesn't Read a .h File?

Post by centip3de on Thu Sep 05, 2013 1:05 am
([msg=77252]see Re: What To Do When Compiler Doesn't Read a .h File?[/msg])

neolithicLoser wrote:It looks like 'SDL.h' is not present in include directory.


This, ish. It's just not in the current directory, or you're not giving the full path name to it. Either change the include to, "path/to/SDL.h", or move "SDL.h" into the directory you're working in.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1431
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests