几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】new already defined,odamem-free,odamem-alloc (http://www.dimcax.com/hust/showthread.php?t=17316)

yang686526 2009-05-06 06:27 PM

【转帖】new already defined,odamem-free,odamem-alloc
 
new already defined,oda::mem_free,oda::mem_alloc
new already defined,oda::mem_free,oda::mem_alloc
hi,
i am using dwg libraries for reading dwg files.initially i had written code for compiling in vc2002 using vc2002ml.i am not facing any problems with that.i am also using header files in include directory in ddnonlibs.zip.but now when i try to compile it in vc2003 with vc2003ml libraries i am getting following linking errors:
dd_vc2003ml_alloc.lib(odalloc.obj) : error lnk2005: "void * __cdecl operator new(unsigned int)" (??2@yapaxi@z) already defined
error lnk2001: unresolved external symbol "void __cdecl oda::mem_free(void *)" (?mem_free@oda@@yaxpax@z)
error lnk2019: unresolved external symbol "void * __cdecl oda::mem_alloc(unsigned int)" (?mem_alloc@oda@@yapaxi@z) referenced in function "public: virtual void __thiscall odrdfilebuf:pen(char const *,enum oda::filesharemode)" (?open@odrdfilebuf@@uaexpbdw4filesharemode@oda@@@z )
thanks
what ddt version do you use?
oda::mem_alloc/oda::mem_free functions were replaced by odrxalloc/odrxrealloc/odrxfree since ddt1.11.
also look at dwgdirect faq about using custom operator new in ddt with mfc.
regards,
sergey vishnevetsky
quote:
originally posted by sergey vishnevetsky
what ddt version do you use?
oda::mem_alloc/oda::mem_free functions were replaced by odrxalloc/odrxrealloc/odrxfree since ddt1.11.
also look at dwgdirect faq about using custom operator new in ddt with mfc.
my problem is solved
thanks


所有的时间均为北京时间。 现在的时间是 11:30 PM.