Here the error i get:
Code: Select all
g++ -c -o simple.o simple.cpp
simple.cpp:2:21: pspuser.h: No such file or directory
simple.cpp:3:21: GL/glut.h: No such file or directory
simple.cpp:7: error: expected constructor, destructor, or type conversion before '(' token
simple.cpp:7: error: expected `,' or `;' before '(' token
simple.cpp: In function `int exit_callback(int, int, void*)':
simple.cpp:38: error: `sceKernelExitGame' undeclared (first use this function)
simple.cpp:38: error: (Each undeclared identifier is reported only once for each function it appears in.)
simple.cpp: At global scope:
simple.cpp:43: error: `SceSize' was not declared in this scope
simple.cpp:43: error: expected primary-expression before "void"
simple.cpp:44: error: initializer expression list treated as compound expressionsimple.cpp:44: error: expected `,' or `;' before '{' token
simple.cpp: In function `void setup_callbacks()':
simple.cpp:56: error: `sceKernelCreateThread' undeclared (first use this function)
simple.cpp:57: error: `sceKernelStartThread' undeclared (first use this function)
simple.cpp: In function `void reshape(int, int)':
simple.cpp:64: error: `GLint' undeclared (first use this function)
simple.cpp:64: error: expected `;' before "errcode"
simple.cpp:64: error: `glViewport' undeclared (first use this function)
simple.cpp:64: error: `errcode' undeclared (first use this function)
simple.cpp:64: error: `glGetError' undeclared (first use this function)
simple.cpp:64: error: `GL_NO_ERROR' undeclared (first use this function)
simple.cpp:65: error: expected `;' before "errcode"
simple.cpp:65: error: `GL_PROJECTION' undeclared (first use this function)
simple.cpp:65: error: `glMatrixMode' undeclared (first use this function)
simple.cpp:66: error: expected `;' before "errcode"
simple.cpp:66: error: `glLoadIdentity' undeclared (first use this function)
simple.cpp:67: error: expected `;' before "errcode"
simple.cpp:67: error: `glOrtho' undeclared (first use this function)
simple.cpp:68: error: expected `;' before "errcode"
simple.cpp:68: error: `GL_MODELVIEW' undeclared (first use this function)
simple.cpp:69: error: expected `;' before "errcode"
simple.cpp: In function `void display()':
simple.cpp:78: error: `GLfloat' does not name a type
simple.cpp:79: error: `angle' undeclared (first use this function)
simple.cpp:81: error: `GLint' undeclared (first use this function)
simple.cpp:81: error: expected `;' before "errcode"
simple.cpp:81: error: `GL_MODELVIEW' undeclared (first use this function)
simple.cpp:81: error: `glMatrixMode' undeclared (first use this function)
simple.cpp:81: error: `errcode' undeclared (first use this function)
simple.cpp:81: error: `glGetError' undeclared (first use this function)
simple.cpp:81: error: `GL_NO_ERROR' undeclared (first use this function)
simple.cpp:82: error: expected `;' before "errcode"
simple.cpp:82: error: `glLoadIdentity' undeclared (first use this function)
simple.cpp:83: error: expected `;' before "errcode"
simple.cpp:83: error: `glTranslatef' undeclared (first use this function)
simple.cpp:86: error: expected `;' before "errcode"
simple.cpp:86: error: `glRotatef' undeclared (first use this function)
simple.cpp:88: error: expected `;' before "errcode"
simple.cpp:88: error: `GL_SMOOTH' undeclared (first use this function)
simple.cpp:88: error: `glShadeModel' undeclared (first use this function)
simple.cpp:90: error: expected `;' before "errcode"
simple.cpp:90: error: `GL_COLOR_BUFFER_BIT' undeclared (first use this function)simple.cpp:90: error: `glClear' undeclared (first use this function)
simple.cpp:91: error: expected `;' before "errcode"
simple.cpp:91: error: `GL_TRIANGLES' undeclared (first use this function)
simple.cpp:91: error: `glBegin' undeclared (first use this function)
simple.cpp:92: error: expected `;' before "errcode"
simple.cpp:92: error: `glColor3f' undeclared (first use this function)
simple.cpp:92: error: expected `;' before "errcode"
simple.cpp:92: error: `glVertex3f' undeclared (first use this function)
simple.cpp:93: error: expected `;' before "errcode"
simple.cpp:93: error: expected `;' before "errcode"
simple.cpp:94: error: expected `;' before "errcode"
simple.cpp:94: error: expected `;' before "errcode"
simple.cpp:95: error: expected `;' before "errcode"
simple.cpp:95: error: `glEnd' undeclared (first use this function)
simple.cpp:96: error: `glutSwapBuffers' undeclared (first use this function)
simple.cpp:97: error: `glutPostRedisplay' undeclared (first use this function)
simple.cpp: In function `void joystick(unsigned int, int, int, int)':
simple.cpp:137: error: `GLint' undeclared (first use this function)
simple.cpp:137: error: expected `;' before "errcode"
simple.cpp:137: error: `glClearColor' undeclared (first use this function)
simple.cpp:137: error: `errcode' undeclared (first use this function)
simple.cpp:137: error: `glGetError' undeclared (first use this function)
simple.cpp:137: error: `GL_NO_ERROR' undeclared (first use this function)
simple.cpp: In function `int main(int, char**)':
simple.cpp:146: error: `glutInit' undeclared (first use this function)
simple.cpp:147: error: `glutCreateWindow' undeclared (first use this function)
simple.cpp:148: error: `glutKeyboardFunc' undeclared (first use this function)
simple.cpp:149: error: `glutKeyboardUpFunc' undeclared (first use this function)simple.cpp:150: error: `glutJoystickFunc' undeclared (first use this function)
simple.cpp:151: error: `glutReshapeFunc' undeclared (first use this function)
simple.cpp:152: error: `glutDisplayFunc' undeclared (first use this function)
simple.cpp:153: error: `glutMainLoop' undeclared (first use this function)
make: *** [simple.o] Error 1