Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:25:1: error: expected initializer before 'void'
void mouseFunction( int button, int state, int x, int y )
^~~~
prog.cc:34:1: error: expected unqualified-id before '...' token
....
^~~
prog.cc: In function 'void motionFunction(int, int)':
prog.cc:55:2: error: 'printf' was not declared in this scope
printf( "drag [ %3d %3d ]\n", x, y );
^~~~~~
prog.cc:55:2: note: suggested alternative: 'int'
printf( "drag [ %3d %3d ]\n", x, y );
^~~~~~
int
prog.cc: At global scope:
prog.cc:57:1: error: expected unqualified-id before '...' token
...
^~~
prog.cc: In function 'void printCharacter(const char*, int, int)':
prog.cc:82:16: error: 'GL_PROJECTION' was not declared in this scope
glMatrixMode( GL_PROJECTION );
^~~~~~~~~~~~~
prog.cc:82:2: error: 'glMatrixMode' was not declared in this scope
glMatrixMode( GL_PROJECTION );
^~~~~~~~~~~~
prog.cc:83:2: error: 'glPushMatrix' was not declared in this scope
glPushMatrix();
^~~~~~~~~~~~
prog.cc:84:2: error: 'glLoadIdentity' was not declared in this scope
glLoadIdentity();
^~~~~~~~~~~~~~
prog.cc:85:21: error: 'GLdouble' was not declared in this scope
gluOrtho2D( 0.0, ( GLdouble ) WINDOW_WIDTH, 0.0, ( GLdouble ) WINDOW_HEIGHT );
^~~~~~~~
prog.cc:85:21: note: suggested alternative: 'double'
gluOrtho2D( 0.0, ( GLdouble ) WINDOW_WIDTH, 0.0, ( GLdouble ) WINDOW_HEIGHT );
^~~~~~~~
double
prog.cc:85:2: error: 'gluOrtho2D' was not declared in this scope
gluOrtho2D( 0.0, ( GLdouble ) WINDOW_WIDTH, 0.0, ( GLdouble ) WINDOW_HEIGHT );
^~~~~~~~~~
prog.cc:86:20: error: 'WINDOW_WIDTH' was not declared in this scope
glViewport( 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT );
^~~~~~~~~~~~
prog.cc:86:34: error: 'WINDOW_HEIGHT' was not declared in this scope
glViewport( 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT );
^~~~~~~~~~~~~
prog.cc:86:2: error: 'glViewport' was not declared in this scope
glViewport( 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT );
^~~~~~~~~~
prog.cc:86:2: note: suggested alternative: 'export'
glViewport( 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT );
^~~~~~~~~~
export
prog.cc:88:16: error: 'GL_MODELVIEW' was not declared in this scope
glMatrixMode( GL_MODELVIEW );
^~~~~~~~~~~~
prog.cc:92:2: error: 'glColor3f' was not declared in this scope
glColor3f( 1.0f, 1.0f, 1.0f );
^~~~~~~~~
prog.cc:93:2: error: 'glRasterPos2i' was not declared in this scope
glRasterPos2i( width, WINDOW_HEIGHT - height );
^~~~~~~~~~~~~
prog.cc:94:27: error: 'strlen' was not declared in this scope
for( unsigned i = 0; i < strlen( buffer ); i++ ) {
^~~~~~
prog.cc:94:27: note: suggested alternative: 'struct'
for( unsigned i = 0; i < strlen( buffer ); i++ ) {
^~~~~~
struct
prog.cc:95:24: error: 'GLUT_BITMAP_HELVETICA_12' was not declared in this scope
glutBitmapCharacter( GLUT_BITMAP_HELVETICA_12, buffer[ i ] );
^~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:95:3: error: 'glutBitmapCharacter' was not declared in this scope
glutBitmapCharacter( GLUT_BITMAP_HELVETICA_12, buffer[ i ] );
^~~~~~~~~~~~~~~~~~~
prog.cc:95:3: note: suggested alternative: 'printCharacter'
glutBitmapCharacter( GLUT_BITMAP_HELVETICA_12, buffer[ i ] );
^~~~~~~~~~~~~~~~~~~
printCharacter
prog.cc:98:2: error: 'glPopMatrix' was not declared in this scope
glPopMatrix();
^~~~~~~~~~~
prog.cc: At global scope:
prog.cc:128:6: error: redefinition of 'void motionFunction(int, int)'
void motionFunction( int x, int y )
^~~~~~~~~~~~~~
prog.cc:53:6: note: 'void motionFunction(int, int)' previously defined here
void motionFunction( int x, int y )
^~~~~~~~~~~~~~
prog.cc: In function 'void motionFunction(int, int)':
prog.cc:130:2: error: 'printf' was not declared in this scope
printf( "drag : [ %3d %3d ]\n", x, y );
^~~~~~
prog.cc:130:2: note: suggested alternative: 'int'
printf( "drag : [ %3d %3d ]\n", x, y );
^~~~~~
int
prog.cc:133:2: error: 'glutPostRedisplay' was not declared in this scope
glutPostRedisplay(); //ドラッグされたら位置をウィンドウに描画するため,再描画を促す
^~~~~~~~~~~~~~~~~
prog.cc: At global scope:
prog.cc:136:1: error: expected unqualified-id before '...' token
....
^~~
Exit Code:
1