错误c2059:语法错误 [英] error c2059:syntax error

查看:488
本文介绍了错误c2059:语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我购买新的vs2010时,我需要将我现有的所有项目转换为新的工作室。

来自vs2003到vs2010。

现在一切正常,除了一个错误,



错误c2059:语法错误< L_TYPE_raw>

当我将我的vs2003项目转换为vs2010时,我得到了语法。



在Google上花了很多时间我才得到回答上面的问题。

请提供,

即使是单身,也可以链接到,

如何解决上述错误?

谢谢

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?
Thanks

推荐答案

此链接有一个解决方案 http://social.msdn.microsoft.com/forums/en-US/98d6e420-a6fe- 4796-a269-2d7a60060db4 / can-resolve-error-c2059-syntax-error-ltyperaw [ ^ ]



它说

There is one solution at this link http://social.msdn.microsoft.com/forums/en-US/98d6e420-a6fe-4796-a269-2d7a60060db4/cannot-resolve-error-c2059-syntax-error-ltyperaw[^]

It says
引用:



问题:有没有人遇到过这种构建错误的经验:错误C2059:语法错误:'< l_type_raw>'



如果我双击在错误上我需要到文件MSADO25.tlh中的以下行;



VARIANT_BOOL EOF;



答案: EOF定义为宏;当它扩展时,这条线变得无稽之谈。一个常见的解决方法是将重命名(EOF,adoEOF)属性添加到#import指令。


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;

VARIANT_BOOL EOF;

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.





描述说明该行导致语法错误使用的关键字是 #import 中的一个宏。您可能有两个 #import ,当它们一起导入时会导致此问题。通过重命名 #import 中的宏名称,您可以更正错误。



我希望这会有所帮助,虽然这可能会或可能不会解决您的问题。



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.


这篇关于错误c2059:语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆