^NyAw^
27th October 2008, 15:10
Hi,
I'm trying to port my application from Visual Studio to Eclipse+MinGW.
I'm having some problems with enum types. On Visual Studio I was able to use:
myClass.h
...
enum myEnum{A = 0, B, C];
...
someWhere in my code
int iA = myClass::myEnum::C;
Visual Studio compiler don't show me any error, but MinGW compiler tells me that it don't exists. The only solution is ignore the enum name.
int iA = myClass::C;
Is this behavior correct?
Thanks,
Another question is: is there any tool to import from Visual Studio project to PRO file?
Thanks,
I'm trying to port my application from Visual Studio to Eclipse+MinGW.
I'm having some problems with enum types. On Visual Studio I was able to use:
myClass.h
...
enum myEnum{A = 0, B, C];
...
someWhere in my code
int iA = myClass::myEnum::C;
Visual Studio compiler don't show me any error, but MinGW compiler tells me that it don't exists. The only solution is ignore the enum name.
int iA = myClass::C;
Is this behavior correct?
Thanks,
Another question is: is there any tool to import from Visual Studio project to PRO file?
Thanks,