Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone, I have big a problem :S Normally I am developing application on VS2005 xp os but My code want migrate from vs2005 to vs2010, also My code is including seperate coded visual C++ and C# files, its running in vs2005 well, no problem but when my code migrated from vs2005 to vs2010 win7 os, I am getting thousands error :(

some errors:
HTML
"Error C4430:missing type specifier int-assumed Note: C++ does not support default-int"
"error C2143: syntax error: missing ';' before '{' "
"error C2143: syntax error: missing ';' before '^' "
"error C2065: 'e' : undeclared identifier."

what do I for it :( anything idea? advance in thankx... very nice for your answers :)
Posted
Updated 10-Oct-12 2:08am
v3
Comments
Jochen Arndt 10-Oct-12 5:05am    
Man errors are usually sourced by a previous one. So if you fix one (the first), you will have much less errors with next build process.

To fix the first, you should provide more information (source code for the file and line number shown in the error message). The error is sometimes not in the stated line but in the preceeding one. Therefore, this source line should be also included.

Please use the green 'Improve question' link to edit your question and add more information.
Richard MacCutchan 10-Oct-12 5:05am    
We cannot guess what is wrong unless you show the lines of your source program that are causing the problems.
Sergey Chepurin 10-Oct-12 6:57am    
Try option "Project from existing code..." See http://msdn.microsoft.com/en-us/library/b9cy3d6x(v=vs.80).aspx

1 solution

The first error is the meaningful one.
In C, if you do something like this:
C++
foo(int j)
{
    return j + 17;
}

the function foo() is assumed to return an int.
In C++, this is an error. The programmer must explicitly declare the return type.
Visual C++ is getting closer and closer to the standards in each new version.

In general, if your compiler gives you errors, your only option is to fix them.

Hope this helps,
Pablo.
 
Share this answer
 

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900