DtsSDK access question
by Joseph D. Walters · in Torque Game Engine · 01/25/2008 (2:25 pm) · 0 replies
Hi.
I'm having a problem and am hoping that some one can help me out or point me to a resource or person that can help me figure it out.
I want to access a class from TSShape.h in the dtsSdk project solution, in code that falls under torqueDemo solution. I made sure the project settings point to the lib file for the dtsSdk and included it. I made a few lines of code using the Shape class from TSShape.h. The problem is/seems to be, when I use new to make a pointer instance of the Shape class.
When I compile I get linking errors to the effect that I am trying to rewrite the new operator.
error LNK2005: "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z) already defined in guiObjectView.obj winMemory.obj
My first question is if someone knows how to resolve this or what is causing the linker error. I noticed that just having the include in a file without any of the code that I wrote or modified, caused errors but it wasn't doing it consistently.
I also noticed that in no code under the torque demo where TSShape.h included. Are we not allowed/able to access code from the dtsSDK?
I'm having a problem and am hoping that some one can help me out or point me to a resource or person that can help me figure it out.
I want to access a class from TSShape.h in the dtsSdk project solution, in code that falls under torqueDemo solution. I made sure the project settings point to the lib file for the dtsSdk and included it. I made a few lines of code using the Shape class from TSShape.h. The problem is/seems to be, when I use new to make a pointer instance of the Shape class.
When I compile I get linking errors to the effect that I am trying to rewrite the new operator.
error LNK2005: "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z) already defined in guiObjectView.obj winMemory.obj
My first question is if someone knows how to resolve this or what is causing the linker error. I noticed that just having the include in a file without any of the code that I wrote or modified, caused errors but it wasn't doing it consistently.
I also noticed that in no code under the torque demo where TSShape.h included. Are we not allowed/able to access code from the dtsSDK?
About the author