Torque: Error when compiling...

Started by
9 comments, last by SymLink 19 years, 6 months ago
I have these errors when compliling Torque Game Engine: Compiling... OpenGL2D3D.cc d:\torque\lib\opengl2d3d\opengl2d3d.h(1165) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored d:\torque\lib\opengl2d3d\opengl2d3d.h(1165) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored d:\torque\lib\opengl2d3d\opengl2d3d.h(1166) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored d:\torque\lib\opengl2d3d\opengl2d3d.h(1166) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored d:\torque\lib\opengl2d3d\opengl2d3d.h(1167) : error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident' d:\torque\lib\opengl2d3d\opengl2d3d.h(1167) : warning C4229: anachronism used : modifiers on data are ignored d:\torque\lib\opengl2d3d\opengl2d3d.h(1167) : error C2501: 'GLboolean' : missing storage-class or type specifiers d:\torque\lib\opengl2d3d\opengl2d3d.h(1167) : error C2377: 'GLboolean' : redefinition; typedef cannot be overloaded with any other symbol d:\torque\lib\opengl2d3d\opengl2d3d.h(25) : see declaration of 'GLboolean' d:\torque\lib\opengl2d3d\opengl2d3d.h(1167) : fatal error C1004: unexpected end of file found Error executing cl.exe. maybe someone knew what is wrong ?
sorry for englishwww.burzuazja-rpg.prv.pl
Advertisement
Include <gl/gl.h>
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Thanks vNistelrooy

i have added this line and now i have sth like this :

d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.


Maybe i have corrupted VS...
sorry for englishwww.burzuazja-rpg.prv.pl
i reinstal VS, and again those errors :(

Someone know what is going on ?
sorry for englishwww.burzuazja-rpg.prv.pl
Before you include <gl/gl.h> include <windows.h>.

That should fix it.

EDIT: IF you were using SDL, you could use #include <sdl_opengl.h>. But I'll assume you aren't.

EDIT AGAIN: ...uh, I think that does the same thing (#include <windows.h>
Things change.
Perhaps you should read the documentation at the GarageGames site and then ask at their forums if you still have problems after that.
i add
#include <windows.h>
and now i get full of errors :(
:--------------------Configuration: opengl2d3d - Win32 Debug--------------------
Compiling...
OpenGL2D3D.cc
d:\torque\lib\opengl2d3d\opengl2d3d.h(1169) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored
d:\torque\lib\opengl2d3d\opengl2d3d.h(1169) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored
d:\torque\lib\opengl2d3d\opengl2d3d.h(1169) : error C2556: 'int __stdcall glAccum(unsigned int,float)' : overloaded function differs only by return type from 'void __stdcall glAccum(unsigned int,float)'
d:\visual studio 6\vc98\include\gl\gl.h(1151) : see declaration of 'glAccum'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1169) : error C2371: 'glAccum' : redefinition; different basic types
d:\visual studio 6\vc98\include\gl\gl.h(1151) : see declaration of 'glAccum'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1170) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored
d:\torque\lib\opengl2d3d\opengl2d3d.h(1170) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored
d:\torque\lib\opengl2d3d\opengl2d3d.h(1170) : error C2556: 'int __stdcall glAlphaFunc(unsigned int,float)' : overloaded function differs only by return type from 'void __stdcall glAlphaFunc(unsigned int,float)'
d:\visual studio 6\vc98\include\gl\gl.h(1152) : see declaration of 'glAlphaFunc'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1170) : error C2371: 'glAlphaFunc' : redefinition; different basic types
d:\visual studio 6\vc98\include\gl\gl.h(1152) : see declaration of 'glAlphaFunc'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1171) : error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1171) : warning C4229: anachronism used : modifiers on data are ignored
d:\torque\lib\opengl2d3d\opengl2d3d.h(1171) : error C2501: 'GLboolean' : missing storage-class or type specifiers
d:\torque\lib\opengl2d3d\opengl2d3d.h(1171) : error C2377: 'GLboolean' : redefinition; typedef cannot be overloaded with any other symbol
d:\visual studio 6\vc98\include\gl\gl.h(44) : see declaration of 'GLboolean'
d:\torque\lib\opengl2d3d\opengl2d3d.h(1171) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
glu2d3d_DEBUG.dll - 8 error(s), 5 warning(s)


i dont know what i should do now ....


Quote:
Perhaps you should read the documentation at the GarageGames site and then ask at their forums if you still have problems after that.

I find nothing about these errors.

[Edited by - intoxicate on October 23, 2004 5:06:16 PM]
sorry for englishwww.burzuazja-rpg.prv.pl
There are instructions for setting up and compiling with Visual C++/Studio in the General Torque Documentation. If you have followed them carefully, and are still having problems, then ask in the GarageGames forums as I mentioned before.

Fairly obviously, there will be more experienced Torque users and staff there than there is here.
Now i have:

OpenGL2D3D.cc
.\opengl2d3d/opengl2d3d.h(1166) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored
.\opengl2d3d/opengl2d3d.h(1166) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored
.\opengl2d3d/opengl2d3d.h(1167) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored
.\opengl2d3d/opengl2d3d.h(1167) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored
.\opengl2d3d/opengl2d3d.h(1168) : error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'
.\opengl2d3d/opengl2d3d.h(1168) : warning C4229: anachronism used : modifiers on data are ignored
.\opengl2d3d/opengl2d3d.h(1168) : error C2501: 'GLboolean' : missing storage-class or type specifiers
.\opengl2d3d/opengl2d3d.h(1168) : error C2377: 'GLboolean' : redefinition; typedef cannot be overloaded with any other symbol
.\opengl2d3d/opengl2d3d.h(26) : see declaration of 'GLboolean'
.\opengl2d3d/opengl2d3d.h(1168) : fatal error C1004: unexpected end of file found
Error executing cl.exe.


In GG Forums nobody knew what is gooing on... :(
sorry for englishwww.burzuazja-rpg.prv.pl
You haven't asked about this problem there, you've asked about purchasing TGE or TSE and whether you can compile TGE with Visual Studio.NET 2002 and 2003.

As it appears that you don't have a TGE license, you don't have access to the docs I mentioned and shouldn't have access to the source code anyway.

This topic is closed to new replies.

Advertisement