几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】operator new and link under dd 1.11 (http://www.dimcax.com/hust/showthread.php?t=17816)

yang686526 2009-05-06 09:29 PM

【转帖】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.