将visual c ++ 6应用程序升级到visual studio 2010 [英] upgrade visual c++ 6 application into visual studio 2010

查看:99
本文介绍了将visual c ++ 6应用程序升级到visual studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



将visualstudio 6.0 Project升级到VisualStudio 2010并收到以下错误消息。



错误4225错误C1003:错误计数超过100;停止编译C:\Program Files \ Microsoft Visual Studio 10.0\VC\include\cmath 41



错误896错误C2054:预期'('到按照'使用'C:\Program Files\Microsoft Visual Studio 10.0 \ VC \include\ctime 18



错误903错误C2059:语法错误: ';'C:\Program Files\Microsoft Visual Studio 10.0 \ VC \include\ctime 20





any一个可以帮我解决这个错误信息。







问候,

Ranjith

Dear All,

while upgrading visualstudio 6.0 Project to VisualStudio 2010 and getting the following error message.

Error 4225 error C1003: error count exceeds 100; stopping compilation C:\Program Files\Microsoft Visual Studio 10.0\VC\include\cmath 41

Error 896 error C2054: expected '(' to follow 'using' C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ctime 18

Error 903 error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ctime 20


any one can help me to resolve this error message.



Regards,
Ranjith

推荐答案

您正在使用现在完全兼容的C ++编译器编译C代码,因此您需要修复一些内容。



我认识一个你的代码有内联的东西现在需要__inline



所以类似



You are compiling C code with a now fully compliant C++ compiler so there are some things you need to fix.

I recognize one which is your code has inline stuff which now needs to be __inline

So something like

inline void exchange(int *p1, int *p2)
{
    int tmp;
    tmp = *p2;
    *p2 = *p1;
    *p1 = tmp;
}



需要成为


needs to become

__inline void exchange(int *p1, int *p2)
{
    int tmp;
    tmp = *p2;
    *p2 = *p1;
    *p1 = tmp;
}


这篇关于将visual c ++ 6应用程序升级到visual studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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