Issues

Error report with Code::Blocks and MinGW

I downloaded the latest release and started building the required programs.

//FreeGlut 2.6.0//

Unfortunately the ./configure and make approach did not work for FreeGlut 2.6.0 with my MinGW. Instead I downloaded the official GLSDK. That GLSDK includes FreeGlut 2.6.0 and offers a premake4 file for it. That way I created a Code::Blocks project and compiled it. The output was two libs: libfreeglut.a and libfreeglutD.a. These I put into the \Tutorial 0.3.6\freeglut-2.6.0\lib directory.

//GLImg//

Here a premake4 file was present. Code::Blocks compiled libglimg.a and libglimgD.a into the \Tutorial 0.3.6\glimg\lib directory for me.

//GLLoad//

Here again premake 4 and Code::Blocks gave me the libglload.a and libglloadD.a files in the \Tutorial 0.3.6\glload\lib directory.

//TinyXML//

Finally, premake4 and Code::Blocks gave me libtinyxml_pm.a and libtinyxml_pmD.a in \Tutorial 0.3.6\tinyxml\lib.

After that I headed over to the \Tutorial 0.3.6\Tut 01 Hello Triangle folder, used premake4 and started the Code::Blocks workspace. When I try to compile that workspace (or any of the two projects framework and tutorial 1) I get these errors:

..\freeglut-2.6.0\include\GL\freeglut_std.h|60|warning: "NOMINMAX" redefined|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0\include\c++\mingw32\bits\os_defines.h|46|note: this is the location of the previous definition|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|225|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|226|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|227|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|228|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|229|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|230|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|231|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|232|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|233|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|234|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|235|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|236|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|237|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|238|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|239|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|240|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|241|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|242|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|243|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|244|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|245|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|246|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|247|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|248|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|249|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|250|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|251|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|252|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|253|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|254|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|255|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|256|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|257|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|258|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|259|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|260|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|261|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|262|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|263|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|264|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|265|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|266|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|267|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|268|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|269|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|270|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|271|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|272|error: 'GLAPI' does not name a type|
c:\mingw\bin..\lib\gcc\mingw32\4.5.0........\include\GL\glu.h|273|error: 'GLAPI' does not name a type|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 1 warnings ===|