Okay I think I am just not following something 100% but i added a class from my old C++ program I had... and put it into a embedded visual C++ project. The class used some mfc stuff like CPoint, CList, and CRect...so I added in the various .h files for the class to work those were:
"afxwin.h"
"afxtempl.h"
These two things then get the new class to compile with my other project (keep in mind it was compiling and linking just fine before) but now even though it compiles I get the following linker errors:
--------------------Configuration: Simple - Win32 (WCE ARM) Release--------------------
Compiling...
Gesture.cpp
Linking...
uafxwce.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll)
uafxwce.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll)
uafxwce.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
uafxwce.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
Creating library ..\Bin/3dTest.lib and object ..\Bin/3dTest.exp
..\Bin/3dTest.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
3dTest.exe - 3 error(s), 2 warning(s)
I assume I have the wrong.h or the wrong .dll in the project, but I cannot figure out exactly whats going on...yes i know it says in coredll.lib but I do believe i need that in there...plus it puzzles me that the linker errors are on standard syntax stuff like new and delete.
So what piece of this puzzle am I missing? Any help would be greatly appreciated...I really hate linker errors sometimes..