Jump to content
  • Advertisement
Sign in to follow this  
Ultracoder2005

OpenGL Problem with making a game engine in OpenGL

This topic is 4098 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok. I am making a game engine for OpenGL. It is a static library. I am making it in Visual Studio C++ Express 2005. I even included the windows libraries and every other library required for OpenGL and it still says this.
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C4430:  missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C2371: 'APIENTRY' : redefinition; different basic types
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C2146: syntax error : missing ';' before identifier 'glArrayElement'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1155) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C2146: syntax error : missing ';' before identifier 'glBegin'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1156) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C2146: syntax error : missing ';' before identifier 'glBindTexture'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C2146: syntax error : missing ';' before identifier 'glBitmap'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1158) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C2146: syntax error : missing ';' before identifier 'glBlendFunc'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1159) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C2146: syntax error : missing ';' before identifier 'glCallList'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1160) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C2146: syntax error : missing ';' before identifier 'glCallLists'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1161) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C2146: syntax error : missing ';' before identifier 'glClear'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1162) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C2146: syntax error : missing ';' before identifier 'glClearAccum'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1163) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C2146: syntax error : missing ';' before identifier 'glClearColor'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1164) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C2146: syntax error : missing ';' before identifier 'glClearDepth'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1165) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C2146: syntax error : missing ';' before identifier 'glClearIndex'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1166) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C2146: syntax error : missing ';' before identifier 'glClearStencil'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1167) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C2146: syntax error : missing ';' before identifier 'glClipPlane'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1168) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C2146: syntax error : missing ';' before identifier 'glColor3b'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1169) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C2146: syntax error : missing ';' before identifier 'glColor3bv'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C2146: syntax error : missing ';' before identifier 'glColor3d'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C2086: 'int APIENTRY' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1171) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : error C2086: 'int WINGDIAPI' : redefinition
1>        C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : error C2146: syntax error : missing ';' before identifier 'glColor3dv'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft Platform SDK\Include\GL/gl.h(1172) : fatal error C1003: error count exceeds 100; stopping compilation
For some reason, it gives me this huge error list. Here is the code.
#include <GL/gl.h>
#include <GL/glu.h>

void DrawCube(int x, int y, int z, int size,int colorr,int colorg,int colorb)
{
	glColor3i(colorr,colorg,colorb);
	glTranslatei(x,y,z);
	glBegin(GL_QUADS);
	//First Side
	glVector3f((float)size/2,(float)-size/2,(float)size/2);
	glVector3f((float)size/2,(float)size/2,(float)size/2);
	glVector3f((float)-size/2,(float)size/2,(float)size/2);
	glVector3f((float)-size/2,(float)-size/2,(float)size/2);
	//Second Side
	glVector3f((float)size/2,(float)-size/2,(float)-size/2);
	glVector3f((float)size/2,(float)size/2,(float)-size/2);
	glVector3f((float)-size/2,(float)size/2,(float)-size/2);
	glVector3f((float)-size/2,(float)-size/2,(float)-size/2);
	//Third Side
	glVector3f((float)-size/2,(float)size/2,(float)size/2);
	glVector3f((float)size/2,(float)size/2,(float)size/2);
	glVector3f((float)size/2,(float)size/2,(float)-size/2);
	glVector3f((float)-size/2,(float)size/2,(float)-size/2);
	//Fourth Side
	glVector3f((float)-size/2,(float)-size/2,(float)size/2);
	glVector3f((float)size/2,(float)-size/2,(float)size/2);
	glVector3f((float)size/2,(float)-size/2,(float)-size/2);
	glVector3f((float)-size/2,(float)-size/2,(float)-size/2);
	//Fifth Side
	glVector3f((float)size/2,(float)-size/2,(float)size/2);
	glVector3f((float)size/2,(float)size/2,(float)size/2);
	glVector3f((float)size/2,(float)size/2,(float)-size/2);
	glVector3f((float)size/2,(float)-size/2,(float)-size/2);
	//Sixth Side
	glVector3f((float)-size/2,(float)-size/2,(float)size/2);
	glVector3f((float)-size/2,(float)size/2,(float)size/2);
	glVector3f((float)-size/2,(float)size/2,(float)-size/2);
	glVector3f((float)-size/2,(float)-size/2,(float)-size/2);
	glEnd();

	glLoadIdentity();
	glColor3i(0,0,0);

}

void Initialize()
{
	glShadeModel(GL_SMOOTH);

	glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
	
	glClearDepth(1.0f);
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LEQUAL);

	glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
}

void ClearBuffers()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();
}

void StartUpView(int width, int height,float closeuprange,float farawayrange)
{
	glViewport(0, 0, width, height);

	glMatrixMode(GL_PROJECTION);

	    gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,closeuprange,farawayrange);

	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
}
Anyone know what's wrong?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!