   Hi all... got a problem with a very simple program...
#include <gl\glee.h>#include <fstream>#include <iostream>using namespace std;int main(){ofstream glversiontest;glversiontest.open("glvt.txt");glversiontest << glGetString(GL_VERSION);glversiontest.close();return 0;}ok... i take this code and try to compile it and i get the following bugger:1>------ Build started: Project: test1, Configuration: Debug Win32 ------1>Compiling...1>t1.cpp1>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-int1>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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1154) : error C2086: 'int WINGDIAPI' : redefinition1>   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 types1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1155) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1156) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1157) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1158) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1159) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1160) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1161) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1162) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1163) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1164) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1165) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1166) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1167) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1168) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1169) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1170) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1171) : error C2086: 'int WINGDIAPI' : redefinition1>   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' : redefinition1>   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-int1>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-int1>c:\program files\microsoft platform sdk\include\gl\gl.h(1172) : error C2086: 'int WINGDIAPI' : redefinition1>   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 compilation1>Build log was saved at "file://d:\Proiecte\Tutorials\Chapter 1\test1\test1\Debug\BuildLog.htm"1>test1 - 143 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========and even if i include gl.h at the start of the program ... it still does this :(any ideas? a library i forgot to add or something?   
  Try #include <windows.h> before including any of the gl headers.   ;  tried it...anyways... im a fresh noob at opengl... so i have one question...do i get that error because i didn't initialise opengl?offtopic:oh... and so i don't open a new thread i have a partially offtopic question:which one is faster(not in terms of portability)? winapi or wxwidgets?   ;  You did not get these errors because you didn't initialize OpenGL.  These errors happen at compile-time whereas initializing OpenGL would happen at run time.  These errors say that Windows types are not defined.  Are you sure you tried including <windows.h>?  Does that at least change the errors?As to your other question, wxWidgets is probably not the best choice for a game.  It interfaces with OpenGL through a canvas object which can be embedded in other controls.  If you want a cross-platform context for OpenGL, look at SDL or GLFW.  wxWifgets would be great for tools though.   ;  oops... it seems that i didn't actually try to include windows.h..yepz... that was the problem.. but i still get a linker errorerror LNK2019: unresolved external symbol __imp__glGetString@4 referenced in function _maini think i have to manually add a dependency library.. but i dunno whichedit:and i have another error - LNK1120 - 1 unresolved externals...tried including glee.. didn't help   ;  Opengl32.lib is the one you need to link in.   ;  hahaaaaLINK : fatal error LNK1104: cannot open file ',.obj'i'm really stupid... thx :) it workededit:lol.. now it gives me an error at runtime... doesn't end up writing anything in the output file...#include <windows.h>#include <gl\glee.h>#include <gl\gl.h>#include <fstream>#include <iostream>using namespace std;int main(){ofstream glvn;glvn.open("glvn.txt");glvn<< glGetString(GL_VERSION);glvn.close();return 0;}could it have anything to do that i added user32.lib to the dependencies? or that i'm running vista?   ;  Depends on what error it gave you.   ;  Unhandled exception at 0x69a7b130 in ogltest.exe: 0xC0000005: Access violation reading location 0x00000000.   ;  Null pointer. Either from the created glvn object or from reading the "glvt.txt" file..   