Hi,
Time for another newbie question.
All of a sudden our project has started to get linker problems, in both the emulator and the GCCE build.
The linker error we get is
And an example of code that creates the "error"int operator==(int, enum TTrue)
Do get it through the linker, it's just to cast the ETrue to a TBool before comparing, like belowCode:void MyClass::MyMethod( void ) { TBool myBool = ETrue; if( myBool == ETrue ) //Linker problem line of code { //Do something } }
But should it really be necessary?Code:void MyClass::MyMethod( void ) { TBool myBool = ETrue; if( myBool == (TBool)ETrue ) { //Do something } }
Regards,
ddskani

Reply With Quote
' ) here's some possible interim solutions off the top of my head -- they have pros and cons so you weigh the decision based on your needs: some compilers have options allowing you to control this behavior; alternatively you can provide a quick implementation of the == method yourself.....

