Game Development Community

Problems when using fstream

by ChrisP · in Torque Game Engine · 03/03/2006 (9:31 am) · 0 replies

Hi,

I'm trying to integrate some code into the Torque 1.3 engine; the code uses and .
I have applied STL_fix.h (provided in the forums) before the other includes which seems to fix some of my problems regarding the linker complaining about redefinitions of new(). Nonetheless, I'm still getting the following linker error which appears to be related to my use of :

libcpmt.lib(locale0.obj) : error LNK2005: "void * __cdecl operator new(unsigned int,void *)" (??2@YAPAXIPAX@Z) already defined in winMemory.obj

Some of the code examples I've seen on the site use , seemingly without any problems. I'm wondering if I'm doing something wrong here, or else what other options I have, so any suggestions would be appreciated. I know I should probably be using FileStream, but that would mean a lot of code to change!

Cheers,
Chris