Troubles compiling max4 version of max2dts exporter plugin
by Nicolas Quijano · in Torque Game Engine · 06/13/2002 (9:34 am) · 16 replies
well, that kinda says it all, doesn't it ??
Wondering if they are any gotchas I should be aware when compiling this tool (or any other, for that matter)..
Are the GUI vs cmd line compiles issues now resolved, or should I look into that to solve my problems...
Basically, it compiles, but VC6 sp5 borks on the linking part... If the exact messages help, I'll run it once more, and give them to you...
Thanks for any help or pointers,
Keep on fraggin' in the free world !!!! 8p
N.
Wondering if they are any gotchas I should be aware when compiling this tool (or any other, for that matter)..
Are the GUI vs cmd line compiles issues now resolved, or should I look into that to solve my problems...
Basically, it compiles, but VC6 sp5 borks on the linking part... If the exact messages help, I'll run it once more, and give them to you...
Thanks for any help or pointers,
Keep on fraggin' in the free world !!!! 8p
N.
#2
Again, thanks in advance, especially if this is our fault, be it a a configuration error or whatever else...
Here is the whole error message, sorry for the lenghty post :
06/14/2002 (4:00 pm)
...looks like our setup might be missing a library, maybe not even in Torque, but hard to say given the cryptic nature of compiler and linker errors, but roughly, it's a LNK2001 error, unresolved external symbol. Any pointer to its source would be appreciated. This is a build from the IDE, release configuration.Again, thanks in advance, especially if this is our fault, be it a a configuration error or whatever else...
Here is the whole error message, sorry for the lenghty post :
Linking... Creating library ../tools/out.VC6.RELEASE/max2dtsExporter.lib and object ../tools/out.VC6.RELEASE/max2dtsExporter.exp exportUtil.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall ClassDesc::GetRsrcString(long)" (?GetRsrcString@ClassDesc@@UAEPADJ@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall ClassDesc::GetRsrcString(long)" (?GetRsrcString@ClassDesc@@UAEPADJ@Z) sequence.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall ClassDesc::GetRsrcString(long)" (?GetRsrcString@ClassDesc@@UAEPADJ@Z) skinHelper.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall ClassDesc::GetRsrcString(long)" (?GetRsrcString@ClassDesc@@UAEPADJ@Z) sequence.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall ParamBlockPLCB::Execute(int,unsigned long,unsigned long,unsigned long)" (?Execute@ParamBlockPLCB@@UAEJHKKK@Z) ../tools/max2dtsExporter.dle : fatal error LNK1120: 2 unresolved externals Error executing link.exe. max2dtsExporter.dle - 6 error(s), 0 warning(s)
#3
But my version of torque now refuses to complie completely, going to uninstall vc6 and then dl a clean version of torqu and see what is going on!
06/14/2002 (6:23 pm)
I have that same exact error!But my version of torque now refuses to complie completely, going to uninstall vc6 and then dl a clean version of torqu and see what is going on!
#4
06/15/2002 (11:04 pm)
http://www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=5212
#5
06/16/2002 (8:30 am)
Thanks Joel, keep forgetting about that INT_PTR thing... (even though I went through the same thing trying to get it to compile :) )
#7
06/16/2002 (8:49 am)
Did you install the processor pack, or change the BASETSD.H file? Looks like your link error is the same one caused by that incorrect INT_PTR definition. Did fixing that make any difference?
#8
It is why I was asking for a complete recap of the solution, with all steps lined out in one post... :)
Will try it later on, gotta scoot !!
thx,
06/16/2002 (8:57 am)
No, the only fix I didn't try is the int thingy, because in the HEAD thread Joel mentioned, someone did advise against doing that change, so I did not try that one...It is why I was asking for a complete recap of the solution, with all steps lined out in one post... :)
Will try it later on, gotta scoot !!
thx,
#9
The official solution is to install the VC6 processor pack, but changing the INT_PTR define directly seems to work fine.
06/16/2002 (9:05 am)
Ok, the INT_PTR most likely the problem. It's a known issue with the Max SDK, and I believe it's reported on Discreet's SDK home page somewhere.The official solution is to install the VC6 processor pack, but changing the INT_PTR define directly seems to work fine.
#10
Would that be then a matter of the order the includes are parsed ?? ie conflicting versions of the same file in different included folders..
Will try to look at Discreet's site for more info...
Again, thank you all for your help and concern :
the GG community rules !!! 8p
really,
06/16/2002 (10:10 am)
what if I already have the SP5 processor pack installed, and it gave me the error ?? (the pack was installed way before I set up Torque)Would that be then a matter of the order the includes are parsed ?? ie conflicting versions of the same file in different included folders..
Will try to look at Discreet's site for more info...
Again, thank you all for your help and concern :
the GG community rules !!! 8p
really,
#11
06/16/2002 (11:37 am)
The "fix" is not included in the SP5, you have to download and install a seperate "processor pack". It's somewhere on the MS site... I'd just edit the appropriate .h file included in you VC6 release. You should only have the one header file, SP5 order shouldn't matter.
#12
Sorry for the confusion :)
I will do the change and post about my results when I do it a bit later this evening.
Again, thanks to everyone who answered
06/16/2002 (2:00 pm)
by SP5 processor pack, I meant the version of the processor pack that is meant for VC6 SP5, ie if you have SP4 installed and not SP5, it's another download, which is the same processor pack but for SP4. Sorry for the confusion :)
I will do the change and post about my results when I do it a bit later this evening.
Again, thanks to everyone who answered
#13
I also updated the core SDK (rather than futzing with the one header file--who knows what else that would break).
06/16/2002 (9:40 pm)
David,I also updated the core SDK (rather than futzing with the one header file--who knows what else that would break).
#14
Should be nailed today (didn't get time for that last night)
06/17/2002 (8:37 am)
Desmond, you mean that if I update my HEAD module right now, it should work, unless another version of the header gets parsed because of folder order search (i have at least five copies of BASETSD.H on my hd, with 2 of the older type, or something like that ;)), which seems to be my problem, rather than not having the right one...Should be nailed today (didn't get time for that last night)
#15
06/17/2002 (10:04 am)
No, sorry I meant the MS Core SDK. Fixes stuff like that basetsd.h problem (I think--who knows with Bill Gates).
#16
No editing of basetsd.h, 'cause as mentioned before we probably all have the good version on our hard drives, starting with the directx8 folder in the TorqueSDK lib folder...
Thanks all, issue resolved (all max stuff compiled fine :)
06/18/2002 (8:15 am)
anyways, fixed it by either adding the directx8 folder in the lib part of the Torque SDK in one of the place in the project settings where you can add additional lib folders (not sure 'cause it looks like this wasn't saved when I quit VC) or by putting the DXSDK include folder at the top of the folder parsing list in VC6 folder settings...No editing of basetsd.h, 'cause as mentioned before we probably all have the good version on our hard drives, starting with the directx8 folder in the TorqueSDK lib folder...
Thanks all, issue resolved (all max stuff compiled fine :)
Torque Owner Tim Gift