I found Heimdall's post on the windows native toolchain, so I set it up last night. I am quite impressed, using the eclipse IDE you can get a pretty decent environment going.
I even managed to compile pspGL using eclipse, although you need a workaround, which I can detail later if anyone is interested.
So my question.
I tried creating a class
Code: Select all
class nodeGE
{
public:
nodeGE() { m_parent = NULL; }
nodeGE( nodeGE* node ) { m_child = node; }
~nodeGE();
void init();
void setPos( int x, int y, int z );
void setPos( ScePspIVector3* vector );
void setRotation( int x, int y, int z );
void setRotation( ScePspIVector3* vector );
void setScale( int x, int y, int z );
void setScale( ScePspIVector3* vector );
private:
nodeGE* m_child;
ScePspIVector3 m_iv3_pos;
ScePspIVector3 m_iv3_rotation;
ScePspIVector3 m_iv3_scale;
};
which gives me an error
Code: Select all
make all
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -D_PSP_FW_VERSION=150 -c -o main.o main.c
In file included from objectGE.h:5,
from main.c:18:
nodeGE.h:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nodeGE'
In file included from main.c:18: