Everything else is in cpp (if you're talking about just the sample code with the compiled library) , and yes I am using a custom defined typedef that is provided by the game engine. My output from psp-g++ is listed on http://pastebin.com/m1c4fa721 for brevity's sake
psptypes.h defines a u8 typedef. If your library also defines one, you'll need to comment one or the other out (or wrap them in #ifdefs) so that you only have one definition.
EDIT: Or of course, if it's defined in a class use Class::u8. same if you are "using Namespace;"
Onii wrote:psptypes.h defines a u8 typedef. If your library also defines one, you'll need to comment one or the other out (or wrap them in #ifdefs) so that you only have one definition.
EDIT: Or of course, if it's defined in a class use Class::u8. same if you are "using Namespace;"
Well, the strange thing is that my custom u8 is inside a namespace, and somehow it conflicts with psptypes.h:
Onii wrote:Yes, and you are likely doing "using TestEngine;", therefore colliding your name space with global.
Just qualify your declarations with TestEngine::u8 var; and you'll be fine.
Whoa...thats alot of work...if its the only way then there isn't much choice, but the code compiles fine on the linux version of gcc with no complaints, so I asked the question. :)