Click here to Skip to main content
15,884,086 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I moved my solution from vs2005 to vs2010, after that one project of that solution can not be build successfully, the compile error are:

MSIL
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(356): error C2144: syntax error : 'char' should be preceded by ')'
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(356): error C3861: 'SAL_functionClass': identifier not found
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(356): error C2059: syntax error : ')'
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(374): error C2144: syntax error : 'char' should be preceded by ')'
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(374): error C3861: 'SAL_acquire': identifier not found
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(374): error C2059: syntax error : ')'
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(381): error C2144: syntax error : 'char' should be preceded by ')'
c:\program files\microsoft sdks\windows\v7.0a\include\driverspecs.h(381): error C3861: 'SAL_release': identifier not found



it seems the __ANNOTATION do not work. I do not know how to solve this problem. Please help.

Thanks a million!
Posted

I had this problem. It went away when I enabled language extensions in the project settings.
 
Share this answer
 
Common problem. They remove your global include directories, forcing you to recreate them project by project, or with an environment variable. They also change some settings. Also are you using MFC, ATL, or CLR?
 
Share this answer
 
v2
I'm not sure what the exact problem is (there is no code included here), but see here[^]. Double underscores have been removed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900