Visual Studio 2008 – Visual C++ problem when using “gl.h”, “glu.h”, “glut.h” headers. Excessive erro

Well, I did some research and found some Visual C++ source codes/project files for an assigned assignment regarding fractals.

I am merely getting into the basics of OpenGL programming.

 

Main body of the main source file:

“#include “application.h”

#include
#include

using namespace std;

#include
#include
#include

 

Error when compiling/executing:

1>—— Build started: Project: glutglsl, Configuration: Debug Win32 ——
1>Compiling…
1>gl_viewer.cpp
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : error C2146: syntax error : missing ‘;’ before identifier ‘glAccum’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C2146: syntax error : missing ‘;’ before identifier ‘glAlphaFunc’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1153) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C2146: syntax error : missing ‘;’ before identifier ‘GLboolean’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C2146: syntax error : missing ‘;’ before identifier ‘glAreTexturesResident’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C2371: ‘APIENTRY’ : redefinition; different basic types
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1154) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C2146: syntax error : missing ‘;’ before identifier ‘glArrayElement’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1155) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C2146: syntax error : missing ‘;’ before identifier ‘glBegin’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1156) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C2146: syntax error : missing ‘;’ before identifier ‘glBindTexture’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1157) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C2146: syntax error : missing ‘;’ before identifier ‘glBitmap’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1158) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C2146: syntax error : missing ‘;’ before identifier ‘glBlendFunc’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1159) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C2146: syntax error : missing ‘;’ before identifier ‘glCallList’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1160) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C2146: syntax error : missing ‘;’ before identifier ‘glCallLists’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1161) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C2146: syntax error : missing ‘;’ before identifier ‘glClear’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1162) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C2146: syntax error : missing ‘;’ before identifier ‘glClearAccum’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1163) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C2146: syntax error : missing ‘;’ before identifier ‘glClearColor’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1164) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C2146: syntax error : missing ‘;’ before identifier ‘glClearDepth’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1165) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C2146: syntax error : missing ‘;’ before identifier ‘glClearIndex’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1166) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C2146: syntax error : missing ‘;’ before identifier ‘glClearStencil’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1167) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C2146: syntax error : missing ‘;’ before identifier ‘glClipPlane’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1168) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C2146: syntax error : missing ‘;’ before identifier ‘glColor3b’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1169) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C2146: syntax error : missing ‘;’ before identifier ‘glColor3bv’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1170) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C2146: syntax error : missing ‘;’ before identifier ‘glColor3d’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C2086: ‘int APIENTRY’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘APIENTRY’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1171) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : error C2086: ‘int WINGDIAPI’ : redefinition
1>        c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1152) : see declaration of ‘WINGDIAPI’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : error C2146: syntax error : missing ‘;’ before identifier ‘glColor3dv’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
1>c:program filesmicrosoft sdkswindowsv6.0aincludeglgl.h(1172) : fatal error C1003: error count exceeds 100; stopping compilation
1>main.cpp
1>c:documents and settingscrysdesktopfractalifractalapplication.h(39) : error C2864: ‘application::aspect_ratio’ : only static const integral data members can be initialized within a class
1>application.cpp
1>c:documents and settingscrysdesktopfractalifractalapplication.h(39) : error C2864: ‘application::aspect_ratio’ : only static const integral data members can be initialized within a class
1>Generating Code…
1>Build log was saved at “file://c:Documents and SettingsCrysDesktopfractaliglutglsl5_2.0DebugBuildLog.htm”
1>glutglsl – 145 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========”

(N.B.: Don’t mind the name of the project, it’s the name of a different project, I assigned the files (after deleting the other project files) to this actual project)).

 

Looking forward to hearing an opinion. Thank you.

 

Regards.

I’m always suspicious ofusingnamespace std;

Nopes, that’s not causing it to act this way. I don’t know what’s up with it, I tried all the stuff in other posts, like adding or changing the order of the OpenGL headers  and ain’t got anywhere so far. Thanks anyway.

Next suggestion:Move your own header file to the end of the list of #includes.  If this eliminates the errors in gl