Pesan error yang mungkin muncul ketika menggunakan OpenGL pada Visual Studio 2005 :
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'
Untuk mengatasinya tambahkan
[sourcecode language=’cpp’]#include [/sourcecode]
sebelum memanggil #include <GL/gl.h>
Hi, just wanna say that i’ve got same error !
How can help us ?-)
Hi Davy, I’ll reply to your email.
Anyway, thanks for visit my blog.