DRL - TGE shaded water problem/compile error
by Max Thomas · in Torque Game Engine · 09/05/2006 (12:25 pm) · 6 replies
Hey,
I've been attempting to get the DRL - TGE CG water upgrade resources into clean heads of TGE 1.4 and TLK 1.4. Both with no success though, I continually get the error:
the two resources are
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10591
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10357
Was just wondering if anyone knew what on earth was going on here or had a fix? Figured I'd ask here before anywhere else. :P
Thanks, Max
I've been attempting to get the DRL - TGE CG water upgrade resources into clean heads of TGE 1.4 and TLK 1.4. Both with no success though, I continually get the error:
Compiling...
fluidRender.cc
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(102) : warning C4005: 'GL_ALL_ATTRIB_BITS' : macro redefinition
../engine\platformWin32/gl_types.h(714) : see previous definition of 'GL_ALL_ATTRIB_BITS'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(117) : warning C4005: 'GL_ZERO' : macro redefinition
../engine\platformWin32/gl_types.h(366) : see previous definition of 'GL_ZERO'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(118) : warning C4005: 'GL_ONE' : macro redefinition
../engine\platformWin32/gl_types.h(367) : see previous definition of 'GL_ONE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(138) : warning C4005: 'GL_TRUE' : macro redefinition
../engine\platformWin32/gl_types.h(166) : see previous definition of 'GL_TRUE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(139) : warning C4005: 'GL_FALSE' : macro redefinition
../engine\platformWin32/gl_types.h(165) : see previous definition of 'GL_FALSE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(214) : warning C4005: 'GL_NONE' : macro redefinition
../engine\platformWin32/gl_types.h(457) : see previous definition of 'GL_NONE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(298) : warning C4005: 'GL_NO_ERROR' : macro redefinition
../engine\platformWin32/gl_types.h(685) : see previous definition of 'GL_NO_ERROR'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(968) : warning C4005: 'GL_CLIENT_ALL_ATTRIB_BITS' : macro redefinition
../engine\platformWin32/gl_types.h(761) : see previous definition of 'GL_CLIENT_ALL_ATTRIB_BITS'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(1147) : warning C4005: 'GL_LOGIC_OP' : macro redefinition
../engine\platformWin32/gl_types.h(418) : see previous definition of 'GL_LOGIC_OP'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(1148) : warning C4005: 'GL_TEXTURE_COMPONENTS' : macro redefinition
../engine\platformWin32/gl_types.h(650) : see previous definition of 'GL_TEXTURE_COMPONENTS'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\GL/gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
TorqueLightingKit.exe - 3 error(s), 10 warning(s)the two resources are
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10591
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10357
Was just wondering if anyone knew what on earth was going on here or had a fix? Figured I'd ask here before anywhere else. :P
Thanks, Max
#2
WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
09/05/2006 (12:48 pm)
Thats the thing thats getting to me also, I don't see anything wrong with this line.. I mean I'm really no C++ guru, but I don't see anything wrong with line 1152WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
#3
I made a mistake before and downloaded the wrong one.
Im pretty sure my errors where similar to yours.
Everything works very well for me with the correct tool kit?
-Surge
09/05/2006 (1:17 pm)
Do you have the correct cg tool kit?I made a mistake before and downloaded the wrong one.
Im pretty sure my errors where similar to yours.
Everything works very well for me with the correct tool kit?
-Surge
#4
download.nvidia.com/developer/cg/Cg_1.4/1.4.1/Cg-1.4.1_Setup.exe is the one I'm using now.
09/05/2006 (1:23 pm)
I'm pretty sure that I'm using the right tool kit, I originally tried one, it didn't work out for me so I tried one that was supplied in a link from the TGE CG water that was said to work. Obviously though, still to no avail. Which cg tool kit are you using?download.nvidia.com/developer/cg/Cg_1.4/1.4.1/Cg-1.4.1_Setup.exe is the one I'm using now.
#5
09/05/2006 (2:20 pm)
You did remember to change the line in cgGl.h or whatever? There's some line that includes gl/gl.h, that should be changed to dgl.h iirc
#6
09/05/2006 (3:15 pm)
Yup, got that one also. As far as I know I have everything set up perfectly, just still getting that error in the end every time.. I'm using Visual C++ 6.0 if that could possibly have anything to do with it?
Torque 3D Owner Peter Simard
Default Studio Name
That looks like the problem right there