Jump to content
  • Advertisement
Sign in to follow this  
intoxicate

Torque: Error when compiling...

This topic is 5139 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

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 ?

Share this post


Link to post
Share on other sites
Advertisement
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...

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites
Perhaps you should read the documentation at the GarageGames site and then ask at their forums if you still have problems after that.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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... :(

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 5139 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.

Guest
This topic is now closed to further replies.
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!