|
我写了一个OpenGL的漫游程序,创建了一个新类CCamera在Camera.h中,编译时就出现下面问题:
Compiling...
Camera.cpp
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
main.cpp
f:\work\a\initiation.h(11) : error C2146: syntax error : missing ';' before identifier 'g_Camera'
f:\work\a\initiation.h(11) : error C2501: 'CCamera' : missing storage-class or type specifiers
f:\work\a\initiation.h(11) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
A.exe - 6 error(s), 0 warning(s)
哪位高手知道这是什么问题啊?很烦人! |
|