CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    219

    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,

  2. #2
    Join Date
    Oct 2009
    Posts
    577

    Smile 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.

  3. #3
    Join Date
    Apr 2008
    Posts
    726

    Re: VS 2010 error at any #include <>

    looks like you might have hit a nasty bug. suggest re-installing studio.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



HTML5 Development Center

Click Here to Expand Forum to Full Width