Problem compiling some of the tools...
by Jason Elison · in Torque Game Engine · 06/12/2002 (11:49 am) · 2 replies
When I try to compile the exporter tools (specifically, the ms2dtsExporter project) it won't compile successfully. The problem is with the vector templates. The vector method "assign" is used with only one parameter, the compiler chokes on this and the documentation says that method requires two paramaters. There is also 3 lines where it chokes with the following error message "c:\Torque\tools\ms2dtsExporter\dtsSDK\DTSMesh.cpp(29): error C2475: 'DTS::Point3D::y' : forming a pointer-to-member requires explicit use of the address-of operator ('&') and a qualified name". the line of code it refers to is this:
"float dot =
( normal.x * normalTable[i][0]
+ normal.y * normalTable[i][1]
+ normal.z * normalTable[i][2] ) ;"
There is one instance of the error message for x, y, and z.
I am using the Microsoft .Net compiler, rather than VC++ 6.0.
"float dot =
( normal.x * normalTable[i][0]
+ normal.y * normalTable[i][1]
+ normal.z * normalTable[i][2] ) ;"
There is one instance of the error message for x, y, and z.
I am using the Microsoft .Net compiler, rather than VC++ 6.0.
#2
06/13/2002 (9:44 am)
According to the docs for MSVC++ 6.0, std::vector::assign has the same signature in 6.0 as in 7.0. This would lead me to believe it should have used two parameters for that version as well...
Torque 3D Owner Robert Blanchet Jr.
.Net is more compliant with the standard then VC 6 was which is why that code compiles in VC 6 and not in .Net.
You'll either have to fix the issues yourself or wait for GG to do it. But I don't think GG is going to do it any time soon.