PDA

View Full Version : Error compiling on Visual Studio 2010



nimedon
03-27-2011, 01:08 PM
Hello,
I'm trying to compile a project that uses OpenGL, but I'm getting this error in Visual Studio 2010 C++. I would really appreciate if someone could help me with this. Thanks!



1>d:\sourcesrme\rme\source\graphics.h(64): error C2146: syntax error : missing ';' before identifier 'getHardwareID'
1>d:\sourcesrme\rme\source\graphics.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(64): warning C4183: 'getHardwareID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\graphics.h(65): error C2146: syntax error : missing ';' before identifier 'getHardwareID'
1>d:\sourcesrme\rme\source\graphics.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(65): warning C4183: 'getHardwareID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\graphics.h(93): error C2146: syntax error : missing ';' before identifier 'getHardwareID'
1>d:\sourcesrme\rme\source\graphics.h(93): error C2433: 'GameSprite::Image::GLuint' : 'virtual' not permitted on data declarations
1>d:\sourcesrme\rme\source\graphics.h(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(93): warning C4183: 'getHardwareID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\graphics.h(97): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(98): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(93): error C2253: 'GameSprite::Image::getHardwareID' : pure specifier or abstract override specifier only allowed on virtual function
1>d:\sourcesrme\rme\source\graphics.h(115): error C2146: syntax error : missing ';' before identifier 'getHardwareID'
1>d:\sourcesrme\rme\source\graphics.h(115): error C2433: 'GameSprite::NormalImage::GLuint' : 'virtual' not permitted on data declarations
1>d:\sourcesrme\rme\source\graphics.h(115): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(115): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(115): warning C4183: 'getHardwareID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\graphics.h(119): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(120): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(128): error C2146: syntax error : missing ';' before identifier 'getHardwareID'
1>d:\sourcesrme\rme\source\graphics.h(128): error C2433: 'GameSprite::TemplateImage::GLuint' : 'virtual' not permitted on data declarations
1>d:\sourcesrme\rme\source\graphics.h(128): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(128): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(128): warning C4183: 'getHardwareID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\graphics.h(132): error C2146: syntax error : missing ';' before identifier 'gl_tid'
1>d:\sourcesrme\rme\source\graphics.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(142): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(143): error C2061: syntax error : identifier 'GLuint'
1>d:\sourcesrme\rme\source\graphics.h(186): error C2146: syntax error : missing ';' before identifier 'getFreeTextureID'
1>d:\sourcesrme\rme\source\graphics.h(186): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(186): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\graphics.h(186): warning C4183: 'getFreeTextureID': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\map_display.h(30): error C2504: 'wxGLCanvas' : base class undefined
1>d:\sourcesrme\rme\source\gui.h(138): error C2143: syntax error : missing ';' before '*'
1>d:\sourcesrme\rme\source\gui.h(138): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(138): error C2061: syntax error : identifier 'wxGLCanvas'
1>d:\sourcesrme\rme\source\gui.h(138): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(138): warning C4183: 'GetGLContext': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\gui.h(280): error C2143: syntax error : missing ';' before '*'
1>d:\sourcesrme\rme\source\gui.h(280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c1xx : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>
1>Build FAILED.
1>

nimedon
03-27-2011, 03:08 PM
Ok, so I've fixed most of the errors, but I'm still getting these:



1>d:\sourcesrme\rme\source\map_display.h(34): error C2504: 'wxGLCanvas' : base class undefined
1>d:\sourcesrme\rme\source\gui.h(150): error C2143: syntax error : missing ';' before '*'
1>d:\sourcesrme\rme\source\gui.h(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(150): error C2061: syntax error : identifier 'wxGLCanvas'
1>d:\sourcesrme\rme\source\gui.h(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(150): warning C4183: 'GetGLContext': missing return type; assumed to be a member function returning 'int'
1>d:\sourcesrme\rme\source\gui.h(294): error C2143: syntax error : missing ';' before '*'
1>d:\sourcesrme\rme\source\gui.h(294): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sourcesrme\rme\source\gui.h(294): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int