![]() |
【转帖】operator new and link under dd 1.11
operator new and link under dd 1.11
operator new and link under dd 1.11 my sample application was linking correctly under 1.10 but now fail to link on new release 1.11 of dwgdirect. the problem is with the operator new and delete: nafxcw.lib(afxmem.obj) : error lnk2005: "void * __cdecl operator new(unsigned int)" (??2@yapaxi@z) symbol already defined in mylibrary.lib(exalloc.obj) the same for delete... the link problem occurs either by linking with dd_vc2003mt_alloc or exalloc.cpp from samples (in a static library). if i link dd_vc2003mt_alloc i get symbol already defined in libcmt.lib and libcpmt.lib (i cannot remove this library, because they are required for vc++). i've read the 1.11 release notes, but doesn't help me. any help? thanks. stefano gemma quote: originally posted by stegemma my sample application was linking correctly under 1.10 but now fail to link on new release 1.11 of dwgdirect... problem solved. i've commented out the new/delete operators in exalloc and corrected another error (i was including mfc header even if i'm not using mfc). ciao!!! stefano gemma |
所有的时间均为北京时间。 现在的时间是 06:58 AM. |