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 17th, 2012, 5:59 pm

Weird. A quick google search says cdefs is a BSD header file.
I think those other header's you downloaded and injected are incompatible, and now you've poisoned your include directories. :?
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, 6:00 pm

Damn! So I changed my include and lib path to what you said (with the lib set to lib instead of include), and it fixed the annoying fatal error, which is a big relief, but now its giving me this error

Code: Select all

1>LINK : fatal error LNK1104: cannot open file 'dxerr.lib'
EDIT: I've been searching around and I can't find dxerr.lib anywhere, where is it supposed to be?
Last edited by fredark on August 17th, 2012, 6:07 pm, edited 1 time in total.

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, 6:01 pm

chili wrote:Weird. A quick google search says cdefs is a BSD header file.
I think those other header's you downloaded and injected are incompatible, and now you've poisoned your include directories. :?

I dont think this happened, since everything seems better with that file now

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, 11:53 pm

Alright, so the dxerr.h file is in the SDK include folder, but including that file doesn't actually fix my problem. Why isn't it opening?

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, 1:31 am

Read your error. It says cannot find dxerr.lib.
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, 1:34 am

I understand that, but putting the path to that file in the lib section didn't fix it.

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, 1:35 am

Did you add the library to the list of libraries to be linked to?
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, 1:51 am

Yes. This is what I have:

$(IncludePath)C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86$(IncludePath)C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib$(DXSDK_DIR)lib\x86;C:\Program Files\boost_1_49_0\stage\lib;$(LibraryPath)

I don't know what the boost is, but the other two should be working. The first one is the one that should be linking to dxerr.lib. I read that renaming it dxerr9.lib would fix it, but that didn't work.

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, 1:56 am

There is a library path and then there is a list of actual modules to include. These are not one in the same thing and you need to set both. Use google and research this topic and then correct it at your end.
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, 2:19 am

Sorry, if I'm being a nuisance or something, but I tried googleing for about 20 minutes but since I don't even really know what you're talking about I haven't come up with anything useful. If you don't mind, could you explain a bit better? I would really appreciate it.

Post Reply