[Iwao@fedora C112]$ cd ../../C11/C113/
[Iwao@fedora C113]$ g++ c113.cpp -lglut -lGL -lGLU
c113.cpp: 関数 ‘void display()’ 内:
c113.cpp:77:18: エラー: ‘GL’ was not declared in this scope
77 | ::glMaterialfv(GL?FRONT_AND_BACK,GL_DIFFUSE,red) ;
| ^~
c113.cpp:77:21: エラー: ‘FRONT_AND_BACK’ was not declared in this scope; did you mean ‘GL_FRONT_AND_BACK’?
77 | ::glMaterialfv(GL?FRONT_AND_BACK,GL_DIFFUSE,red) ;
| ^~~~~~~~~~~~~~
| GL_FRONT_AND_BACK
c113.cpp:77:50: エラー: expected ‘:’ before ‘)’ token
77 | ::glMaterialfv(GL?FRONT_AND_BACK,GL_DIFFUSE,red) ;
| ^
| :
c113.cpp:77:50: エラー: expected primary-expression before ‘)’ token
[Iwao@fedora C113]$ g++ c113.cpp -lglut -lGL -lGLU
[Iwao@fedora C113]$ ./a.out
11.3 材質を設定する
- 詳細
- カテゴリー: GLUT による OpenGL 入門
- 参照数: 915