Game Development Community

Linking problem

by Devil`s Workshop · in Torque Game Engine · 03/03/2004 (7:34 am) · 2 replies

Hi there,

trying to get the actual Head compiled (applied Radiosity) but getting the following errors:

Linking...
tsShape.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
tsShapeInstance.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
tsShapeOldRead.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
guiMLTextCtrl.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
interiorInstance.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
terrRender.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
tsMesh.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
convex.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
compiler.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
consoleInternal.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
materialList.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z)
../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Any idea what's wrong ??

Thanks,
Alexander

PS: Installed VC6SP 5...didn't help :(

PPS: System Win XP Pro, VC++6

#1
03/03/2004 (7:37 am)
From TGERAD_COMPILING.TXT:
Quote:
B) In engine\platformWin32\winMemory.cc the new operator was commented out to avoid linker errors
with the FSRad sources... you will want to revert this change when compiling the Torque Demo project...
...
#2
03/03/2004 (9:37 am)
Ouch, RTFM :) It's working now thanks for your help.