Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Comments
Richard MacCutchan 28-May-14 8:55am    
You need to look at your project settings and your code to find the error; no one here can guess what it is. You also need to be aware that the difference between the two compiler versions is quite extensive so many things that were accepted in VC 6 are no longer allowed.

1 solution

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;
}
 
Share this answer
 
Comments
ranjithkumar81 29-May-14 1:14am    
any other challenge will be there?

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