Problem in Accesing MS Excel as database from wx Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Knows some wx things
Knows some wx things
Posts: 35
Joined: Mon Feb 21, 2005 12:52 pm

Problem in Accesing MS Excel as database from wx

Post by vsp » Fri Jun 09, 2006 10:59 am

I was trying to load/edit the excel(used as a database) in a wxDialog. For which I have included a header file
- #include <afxdb.h>

While linking I am getting an error as follows.
DEPWizard error LNK2005: "void * __cdecl operator new(unsigned int)" ([email protected]@Z) already defined in libcpmtd.lib(newop.obj)

DEPWizard error LNK2005: "void * __cdecl operator new[](unsigned int)" ([email protected]@Z) already defined in libcpmtd.lib(newaop.obj)

DEPWizard error LNK2005: "void __cdecl operator delete(void *)" ([email protected]@Z) already defined in LIBCMTD.lib(dbgdel.obj)

DEPWizard error LNK2005: "void __cdecl operator delete[](void *)" ([email protected]@Z) already defined in LIBCMTD.lib(delete2.obj)

how can I get out of this problem.

Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore

Post by lowjoel » Fri Jun 09, 2006 11:13 am

make sure they all only use one type of runtime library. Either make all use /MT or all use /MD (which are static and DLL RTLs respectively, in VC 2005 its under C/C++)

Post Reply