|
-
November 24th, 2008, 04:14 PM
#3
Re: "windows.h no such file or directory" in Visual Studio 2008! Help
 Originally Posted by JohnCz
Start Visual Studio. Go to Tools->Options and expand Projects and solutions.
Select VC++ Directories from the tree and choose Include Files from the combo on the right.
You should see: $(WindowsSdkDir)\include - (default.)
If this is missing, you found a problem. If not, search for a file. It should be located in
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include if VS was installed in default directory.
Enter path for windows.h in the new line of above mentioned place.
windows.h should be from proper version of the SDK installation, otherwise your program may not compile.
I followed your instructions:
i have seen several lines in the list, $(WindowsSdkDir)\include was one of them
However, i went to C:\Program Files\Microsoft SDKs\Windows\v6.0A\,
v6.0A folder only contains bin & Bootstrapper. There isn't "include" folder.
Underneath Windows folder, there are v6.0A and v5.0. v5.0 folder contains lib & include folders...
I put C:\Program Files\Microsoft SDKs\Windows\v5.0\include in place of $(WindowsSdkDir)\include, i got this error while building
Error 1 fatal error C1189: #error : Your version of the Windows SDK is earlier than 6.0. Try setting the 'WINVER' and '_WIN32_WINNT' definitions in your project to less than 0x0600. c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h 26 hello
Then i tried to put all these paths together in the list:
C:\Program Files\Microsoft SDKs\Windows\v5.0
C:\Program Files\Microsoft SDKs\Windows\v6.0A
$(WindowsSdkDir)\include
.
.
many more included by default.
I rebuild, i got same old error
fatal error 1083: windows.h no such file or directory
Any idea?! Odd
Last edited by f.ben.isaac; November 24th, 2008 at 04:22 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|