Click here to Skip to main content
11,634,568 members (68,645 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2010
I moved my solution from vs2005 to vs2010, after that one project of that solution can not be build successfully, the compile error are:

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 12-Oct-10 16:51pm
sundaqi315
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I had this problem. It went away when I enabled language extensions in the project settings.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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?
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I'm not sure what the exact problem is (there is no code included here), but see here[^]. Double underscores have been removed.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 8,736
1 Sergey Alexandrovich Kryukov 8,359
2 Mika Wendelius 6,845
3 F-ES Sitecore 2,354
4 Suvendu Shekhar Giri 2,205


Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 19 Oct 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100