Click here to Skip to main content
13,152,454 members (38,600 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,
When i buy the new vs2010 so, i need to convert all my existing project to new studio.
that is from from vs2003 to vs2010.
Now all working fine except one error,

error c2059:syntax error <L_TYPE_raw>
When i convert my vs2003 project to vs2010 i get syntax.

after spending lot of time on google i only get a above question ont answer.
Please provide ,
Even single hing, or link to ,
How to solve above error?
Posted 5-Sep-12 22:37pm
Jochen Arndt 6-Sep-12 5:29am
"To determine the cause of the error, examine not only the line listed in the error message, but also the lines above it."
You should post some lines of the code that produces the error. If a struct or typedef might be involved, you should also post the definition.
Mike Meinz 2-Jun-14 9:35am
VS 2010 is not the newest Visual Studio. VS 2012 and VS 2013 are newer.
Manikandan10 3-Jun-14 5:02am
OP didn't claim that VS 2010 is the newest Visual Studio.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

There is one solution at this link[^]

It says

Question: Has anybody got any experience of this build error: error C2059: syntax error : '<l_type_raw>'

If I double-click on the error it takes me to the following line in file MSADO25.tlh;


Answer: EOF is defined as a macro; when it expands, this line becomes nonsense. A common workaround is to add rename("EOF", "adoEOF") attribute to your #import directive.

The description explains that the line that is causing the syntax error uses a keyword that is a macro in one of your #imports. You may have two #imports that when imported together cause this problem. By renaming the macro name in the #import you can correct the error.

I hope this helps although this may or may not be the solution to your problem.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170924.2 | Last Updated 2 Jun 2014
Copyright © CodeProject, 1999-2017
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