I just finished a simple game using cocos2dx. It runs will in both iOS and Android. But I copy those class files to VS2010 project, many compile errors appears. For example missing “;”, “{” or something not defined in my class.
I am a beginner in C++, so I dont know how many difference between them.
The code in the classes folder should be identical.
Can you give an example where you are getting the errors?
Adam Reed wrote:
The code in the classes folder should be identical.
>
Can you give an example where you are getting the errors?
Thank you.
For example:
for (int i = 0; i < 10; i++) {
doSomeStuffs();
}
VS2010 told me “i” is undefined.
Well I’m using VS and have the same type of code without any issues.
for(int i = 0; i < count; i++)
{
blah...
}