Hello again all. :)
Linker trouble this time. When i try to compile i get the following error:
I havn't tried to override the new or delete operators or anything (i don't even use them). I am using 3 files in my C++ .Net 2003 project with header includes as shown:Quote:
TerrainGen error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
TerrainGen error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
Any ideas on what can be causing the error? I've fiddled around with the includes but can't seem to get the project to compile (either with error: indefined messages, or errors as above).Code:Bitmap.h
#include <stdio.h>
#include <malloc.h>
#include <windows.h>
Main.cpp
#include <afxwin.h>
#include <windows.h>
#include <d3dx9.h>
Direct3D.cpp
#include "Bitmap.h"
#include <mmsystem.h>
#include <d3dx9.h>
Thanks for any help provided.
