Welcome! Log In Create A New Profile

Advanced

Does C++ not work?

Posted by robotmenace 
Does C++ not work?
May 06, 2009 09:16PM
I've started playing about a bit but every time I try to access any member object of a class I get errors similar too

error: request for member 'SetValue' in 'MyObject' , which is of non-class type 'MyClass () ()'

It lets me create instances of classes, and set a constructor etc, but wherever I try to access members I get this. The same code without the Wii specific stuff works fine compiled on my PC.

I have tried searching for answers on this and have had no luck. If C++ just doesn't work then I'll start again in C, TBH though I'm hoping I've just missed something stupid.
Re: Does C++ not work?
May 06, 2009 09:37PM
Yes, C++ runs fine on the Wii.

Sounds like you have a linking error.



Edited 3 time(s). Last edit at 05/06/2009 09:45PM by Arikado.
Re: Does C++ not work?
May 06, 2009 10:15PM
Thanks Arikado but it doesn't even get to linking seeing as it doesn't compile, I've tried putting -lstdc++ in my makefile but no luck. Should I try using an SVN build of libogc or is this the compiler?
Re: Does C++ not work?
May 07, 2009 07:22AM
Just pastebin the code (don't post it here, the forum sucks).
Re: Does C++ not work?
May 07, 2009 01:27PM
Sorry all, I must have made some sort of typo I couldn't spot because I've started again from scratch, couldn't see any differences myself, and everythings working fine now.

Sorry again and thanks Arikado and Henke37 for trying to help
Re: Does C++ not work?
May 15, 2009 09:26AM
to be clear to new members

C++ works PERFECTLY fine.
Sorry, only registered users may post in this forum.

Click here to login