Max2dts Compiler error on VC7
by Mark Harmon · in Torque Game Engine · 12/22/2003 (6:38 pm) · 3 replies
Just got the latest HEAD from cvs and tried to compile the SDK. I got these errors in the "max2dtsExporter Max4" project.
------ Build started: Project: max2dtsExporter Max4, Configuration: Release Win32 ------
Compiling...
NvTriStripObjects.cc
../engine\dgl\materialList.h(69) : error C2143: syntax error : missing ';' before '<'
../engine\dgl\materialList.h(69) : error C2365: 'MaterialList::Vector' : redefinition; previous definition was a 'member function'
../engine\dgl\materialList.h(58) : see declaration of 'MaterialList::Vector'
../engine\dgl\materialList.h(69) : error C2039: 'iterator' : is not a member of 'operator''global namespace'''
../engine\dgl\materialList.h(69) : error C2238: unexpected token(s) preceding ';'
../engine\dgl\materialList.h(70) : error C2143: syntax error : missing ';' before '<'
../engine\dgl\materialList.h(70) : error C2365: 'MaterialList::Vector' : redefinition; previous definition was a 'member function'
../engine\dgl\materialList.h(58) : see declaration of 'MaterialList::Vector'
../engine\dgl\materialList.h(70) : error C2039: 'value_type' : is not a member of 'operator''global namespace'''
../engine\dgl\materialList.h(70) : error C2238: unexpected token(s) preceding ';'
../engine\dgl\materialList.h(76) : error C2146: syntax error : missing ';' before identifier 'begin'
../engine\dgl\materialList.h(76) : error C2501: 'MaterialList::iterator' : missing storage-class or type specifiers
../engine\dgl\materialList.h(76) : warning C4183: 'begin': missing return type; assumed to be a member function returning 'int'
../engine\dgl\materialList.h(77) : error C2146: syntax error : missing ';' before identifier 'end'
../engine\dgl\materialList.h(77) : error C2501: 'MaterialList::iterator' : missing storage-class or type specifiers
../engine\dgl\materialList.h(77) : warning C4183: 'end': missing return type; assumed to be a member function returning 'int'
../engine\dgl\materialList.h(78) : error C2143: syntax error : missing ';' before '['
../engine\dgl\materialList.h(78) : error C2501: 'MaterialList::value' : missing storage-class or type specifiers
Build log was saved at "file://c:\torque\tools\out.VC6.RELEASE\max2dtsExporter_Max4\BuildLog.htm"
max2dtsExporter Max4 - 14 error(s), 2 warning(s)
Anybody else have this problem? I searched the forums and haven't seen anyone post these errors yet.
------ Build started: Project: max2dtsExporter Max4, Configuration: Release Win32 ------
Compiling...
NvTriStripObjects.cc
../engine\dgl\materialList.h(69) : error C2143: syntax error : missing ';' before '<'
../engine\dgl\materialList.h(69) : error C2365: 'MaterialList::Vector' : redefinition; previous definition was a 'member function'
../engine\dgl\materialList.h(58) : see declaration of 'MaterialList::Vector'
../engine\dgl\materialList.h(69) : error C2039: 'iterator' : is not a member of 'operator''global namespace'''
../engine\dgl\materialList.h(69) : error C2238: unexpected token(s) preceding ';'
../engine\dgl\materialList.h(70) : error C2143: syntax error : missing ';' before '<'
../engine\dgl\materialList.h(70) : error C2365: 'MaterialList::Vector' : redefinition; previous definition was a 'member function'
../engine\dgl\materialList.h(58) : see declaration of 'MaterialList::Vector'
../engine\dgl\materialList.h(70) : error C2039: 'value_type' : is not a member of 'operator''global namespace'''
../engine\dgl\materialList.h(70) : error C2238: unexpected token(s) preceding ';'
../engine\dgl\materialList.h(76) : error C2146: syntax error : missing ';' before identifier 'begin'
../engine\dgl\materialList.h(76) : error C2501: 'MaterialList::iterator' : missing storage-class or type specifiers
../engine\dgl\materialList.h(76) : warning C4183: 'begin': missing return type; assumed to be a member function returning 'int'
../engine\dgl\materialList.h(77) : error C2146: syntax error : missing ';' before identifier 'end'
../engine\dgl\materialList.h(77) : error C2501: 'MaterialList::iterator' : missing storage-class or type specifiers
../engine\dgl\materialList.h(77) : warning C4183: 'end': missing return type; assumed to be a member function returning 'int'
../engine\dgl\materialList.h(78) : error C2143: syntax error : missing ';' before '['
../engine\dgl\materialList.h(78) : error C2501: 'MaterialList::value' : missing storage-class or type specifiers
Build log was saved at "file://c:\torque\tools\out.VC6.RELEASE\max2dtsExporter_Max4\BuildLog.htm"
max2dtsExporter Max4 - 14 error(s), 2 warning(s)
Anybody else have this problem? I searched the forums and haven't seen anyone post these errors yet.
#2
Now I am having trouble getting the plugin to run in debug mode. I set the executable file to be the 3dsmax.exe and the working dir is set. I set a breakpoint in my code but it never stops and when it does finally crash (max 5.1 multires) VC7 will only show assembly code in debugger.
Can anyone help me here?
12/31/2003 (7:38 pm)
Submitted patch for HEAD.Now I am having trouble getting the plugin to run in debug mode. I set the executable file to be the 3dsmax.exe and the working dir is set. I set a breakpoint in my code but it never stops and when it does finally crash (max 5.1 multires) VC7 will only show assembly code in debugger.
Can anyone help me here?
#3
01/01/2004 (2:40 pm)
I got the plugin to work in debug mode and am tracking down the multires plugin bug. It looks like ShapeMimic::addMultiRes() is crashing 3dsmax because of an empty IParamBlock for the multires modifier.
Torque Owner Mark Harmon
In the meanwhile open up NvTriStripObjects.cc and comment out this line:
// temporary define for compilation
#define set Vector
So make it...
//#define set Vector