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

The Partridge Family were neither partridges nor a family. Discuss.
fredark
Posts: 28
Joined: August 15th, 2012, 3:59 pm

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

Post by fredark » August 15th, 2012, 4:06 pm

I've had a bunch of problem with header files not being included, but most of them were solved by downloading each individual header file and placing them in the SDK's include folder. For this header file, though, I don't really understand what it wants from the 'sys/'. I haven't been able to find a header file by this name, only by the name of cdefs.h.

Not really sure why I've been having all of these problems with the header files, I tried uninstalling and reinstalling the SDK, as well as the fix where you make sure its including the include and lib folders. This is really getting me pulling my hair out. Any help would be appreciated.

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

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

Post by fredark » August 16th, 2012, 2:37 am

No one has had this issue?

In that case, does anyone know if this framework would work if I copied and pasted it into the newest version of Visual studio? I have a feeling that it would work better, as that version has never given me problems while 2010 has bugged out for me before. Is there something about the framework making it 2010 only?

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 16th, 2012, 3:18 pm

the sys/ part means a subfolder in the main folder for the includes.
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 16th, 2012, 3:37 pm

There weren't any folders called sys so I made on in the include folder and put cdefs.h in it, now its giving me a bunch of errors with __THROW along with a bunch of new missing header files.

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

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

Post by fredark » August 17th, 2012, 1:35 pm

Am I just incompetent? I feel like I shouldn't be having this problem in the first place. I really want to get coding again :(

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

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

Post by LuX » August 17th, 2012, 1:59 pm

Try reimporting the includes and libraries.
ʕ •ᴥ•ʔ

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

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

Post by fredark » August 17th, 2012, 3:56 pm

Sorry but I'm not really sure what that means

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 17th, 2012, 4:02 pm

I have no idea brah. Seems like the SDK isn't installing properly. I couldn't say much without looking at your stuff myself, and unless you live in Tokyo that's gonna be pretty hard. ;)
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 17th, 2012, 4:06 pm

Is it the SDK that has all of these header files? I was mainly focusing on VS thinking that was the issue, but now I guess I'll go try and fiddle with installing the SDK.

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 17th, 2012, 4:14 pm

Some people run the exe that they get and leave it at that. The exe is just an archive, so after you run it you have to go to the folder where it unzipped its contents and run the installer.
Chili

Post Reply