|
-
December 23rd, 2010, 08:49 AM
#1
VS 2010 error at any #include <>
Hello,
In all my projects, at what ever #include <> i get an error. It worked fine till I installed WDK (DDK) for the drivers, after that it started. I tried new projects, no results; a few examples:
Code:
#include <windows.h>
gives these errors:
string.h(46): error C2144: syntax error : 'void' should be preceded by ';'
string.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
>>>string.h(216): fatal error C1003: error count exceeds 100; stopping compilation// quite hopless
Code:
#include <iostream>
gives these errors:
yvals.h(860): warning C4159: #pragma pack(pop,...) : has popped previously pushed identifier '_CRT_PACKING'
math.h(88): error C2144: syntax error : 'double' should be preceded by ';'
Also more then 100....
Someone knows something?
Thanks,
-
December 23rd, 2010, 09:34 AM
#2
Re: VS 2010 error at any #include <>
Check the global include directories defined below Tools - Options - Projects and Solutions - VC++ Directories. I would assume that the DDK driver installation either has overwritten some of those folders (what would be bad cause I don't think that the DDK headers are sufficient for VS2010) or that some of the folders now are missing (did you move any folders to another place?).
If nothing helps uninstall VS2010 (fully beside of the projects) and reinstall it again using a different root folder for installation.
-
December 23rd, 2010, 09:39 AM
#3
Re: VS 2010 error at any #include <>
looks like you might have hit a nasty bug. suggest re-installing studio.
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
|