Keep getting compiling error since a month on all c++ projects.

Answered Keep getting compiling error since a month on all c++ projects.

  • Sunday, April 15, 2012 1:37 PM
     
      Has Code

    Since +- 1 month I keep getting these compiling errors (Always the same) on ALL my c++ projects (C# and vb work fine for now...)

    I tried uninstalling, reinstalling, repairing, tried with VS and with VC++, tried installing the win7 sdk (because As far as I can see the header files in the windows sdk folder as causing the issues. I'm lost now. Oh and I didn't mess with any of the files in the windows sdk folder

    Thanks in advance

    first 10 errors copied:

    Error	1	error C2065: 'ULONG_PTR' : undeclared identifier	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	361	1	Lyn
    Error	2	error C2146: syntax error : missing ')' before identifier 'p'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	361	1	Lyn
    Error	3	error C2059: syntax error : ')'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	361	1	Lyn
    Error	4	error C2065: 'ULONG_PTR' : undeclared identifier	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	370	1	Lyn
    Error	5	error C2144: syntax error : 'unsigned __int64' should be preceded by ')'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	370	1	Lyn
    Error	6	error C2059: syntax error : ')'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	370	1	Lyn
    Error	7	error C2065: 'ULONG_PTR' : undeclared identifier	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	388	1	Lyn
    Error	8	error C2144: syntax error : 'unsigned __int64' should be preceded by ')'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	388	1	Lyn
    Error	9	error C2059: syntax error : ')'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	388	1	Lyn
    Error	10	error C2146: syntax error : missing ';' before identifier 'SIZE_T'	C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h	421	1	Lyn


    • Edited by distiny Sunday, April 15, 2012 1:38 PM
    •  

All Replies

  • Sunday, April 15, 2012 6:09 PM
     
     Proposed
    Either something happened to the basetsd.h header file or some code in front of it has been broken.  You could set the options to generate the pre-processor output and see if you can visually find the problem.
  • Wednesday, April 18, 2012 5:53 PM
     
     Answered
    I fixed by doing an install in a vm and copy over the windows SDK's folder + cs lib and include folders
    • Marked As Answer by distiny Wednesday, April 18, 2012 5:54 PM
    •