Compiling Max4 exporter to Max9
by Kuju Manila · in Torque Game Engine · 03/27/2007 (8:09 pm) · 0 replies
Hello all!
I need some guidance in getting the Max4 exporter code to compile using Max 9 SDK. I've already applied the Max 9 changes required as dictated by the Max 9 SDK Upgrade guide, except for one:
In sequence.cc:
The most annoying problem I am encountering (assuming I just remarked MakeRefByID) is that when I compile, the linker fails. The problem was it sees the operator new to be already defined. Microsoft Platform SDK conflicts with the ones defined in platform.h and winMemory.cc (during link with Torque Tools Lib's engine.lib). As some of the forums here have suggested I should just go ahead and remark the declaration of the operator new in winMemory.cc and I disable the Torque Memory Manager by defining the macro found in platform.h. This solved that linking problem on *that issue but a new one pops out. The new linking error is that the MaxHeapOperators::operator delete is an unresolved external symbol.
Help is greatly appreciated. :)
I need some guidance in getting the Max4 exporter code to compile using Max 9 SDK. I've already applied the Max 9 changes required as dictated by the Max 9 SDK Upgrade guide, except for one:
In sequence.cc:
MakeRefByID(FOREVER, 0, CreateParameterBlock( curVersion.desc, PBLOCK_LENGTH, CURRENT_VERSION));According to Max9 SDK usage of MakeRefByID should be replaced by ReplaceReference(). However, MakeRefByID and ReplaceReference is not 1:1 in terms of usage. I need to know what is the proper code modification for this?
The most annoying problem I am encountering (assuming I just remarked MakeRefByID) is that when I compile, the linker fails. The problem was it sees the operator new to be already defined. Microsoft Platform SDK conflicts with the ones defined in platform.h and winMemory.cc (during link with Torque Tools Lib's engine.lib). As some of the forums here have suggested I should just go ahead and remark the declaration of the operator new in winMemory.cc and I disable the Torque Memory Manager by defining the macro found in platform.h. This solved that linking problem on *that issue but a new one pops out. The new linking error is that the MaxHeapOperators::operator delete is an unresolved external symbol.
Help is greatly appreciated. :)