fatal error C1083: Cannot open include file: 'sys/cdefs.h':

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by chili » August 18th, 2012, 3:28 am

It depends on what you have in the folders and in the includes paths brah. $(includepath) is an environment variable with the path to the includes for vc++. If you use your own path you don't use the env var.
Chili

fredark
Posts: 28
Joined: August 15th, 2012, 3:59 pm

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by fredark » August 18th, 2012, 3:34 am

Well deleting the other (includepath) thing didn't work either unfortunately.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by chili » August 18th, 2012, 4:05 am

Hmm, sorry brah. Not much I can do from here I'm afraid.
Chili

fredark
Posts: 28
Joined: August 15th, 2012, 3:59 pm

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by fredark » August 18th, 2012, 4:11 am

Thanks for the help, anyway. I appreciate the effort. I just hope I can get this fixed on my own somehow. Keep up the good work on the tutorials, mate.

fredark
Posts: 28
Joined: August 15th, 2012, 3:59 pm

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by fredark » August 18th, 2012, 5:38 am

Just thought I'd say that I got some help from a guy on reddit, so everything is cool now. I can get working on some projects now :D

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by chili » August 18th, 2012, 6:07 am

Awesome bro, what was the problem?
Chili

fredark
Posts: 28
Joined: August 15th, 2012, 3:59 pm

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by fredark » August 18th, 2012, 3:45 pm

I'm not even really sure, he had me move the priority of one of the paths over the other one or something like that.

imgest
Posts: 1
Joined: March 6th, 2013, 3:58 am

Re: fatal error C1083: Cannot open include file: 'sys/cdefs.

Post by imgest » March 6th, 2013, 4:07 am

Fredark, Buddy im having the same problem here for about a week could you please help me find the solution. I have the exact problema as you. More specifically:
//
1>------ Build started: Project: Chili DirectX Framework, Configuration: Release Win32 ------
1> D3DGraphics.cpp
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\include\d3d9.h(37): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
1> Game.cpp
1>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\include\d3d9.h(37): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
1> Timer.cpp
1>c:\users\imgest89\documents\visual studio 2012\projects\chili directx framework\assets\Timer.h(23): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1> Windows.cpp
1>..\Assets\Windows.cpp(21): fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
//

Thanks.


Edit: I have the same problem when installing the allegro library (Facepalm)

Post Reply