查看单个帖子
旧 2009-05-06, 11:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problems building with dwgdirect 2.6.3

problems building with dwgdirect 2.6.3
problems building with dwgdirect 2.6.3
i've just upgraded our application from dwgdirect 2.2.0 to 2.6.3 and i now cannot seem to link
without errors.
when linking against debug 2.6.3 dwgdirect libraries and msvcrtd and mfc90ud i get:
msvcprtd.lib(msvcp90d.dll) : warning lnk4006: "public: __thiscall std::allocator
<char>::allocator<char>(void)" (??0?$allocator@d@std@@qae@xz) already defined in
cad_dwg.lib(exhostappservices.obj); second definition ignored
msvcprtd.lib(msvcp90d.dll) : warning lnk4006: "public: __thiscall std::allocator
<char>::allocator<char>(class std::allocator<char> const &)" (??0?$allocator@d@s
td@@qae@abv01@@z) already defined in cad_dwg.lib(exhostappservices.obj); second
definition ignored
h:\livingston\cadra2\tool\adradwg.dll : warning lnk4088: image being generated d
ue to /force option; image may not run
when linking against nodebug 2.6.3 dwgdirect libraries and msvcrt and mfc90u i get:
cad_dwg.lib(exhostappservices.obj) : error lnk2019: unresolved external symbol "
void * __cdecl operator new[](unsigned int,struct std::_debugheaptag_t const &,c
har *,int)" (??_u@yapaxiabu_debugheaptag_t@std@@padh@z) referenced in function "
public: char * __cdecl std::_debugheapallocator<char>::allocate(unsigned int,voi
d const *)" (?allocate@?$_debugheapallocator@d@std@@qaapadipbx @z)
cad_dwg.lib(exhostappservices.obj) : error lnk2019: unresolved external symbol "
struct std::_debugheaptag_t const & __cdecl std::_debugheaptag_func(void)" (?_de
bugheaptag_func@std@@yaabu_debugheaptag_t@1@xz) referenced in function "public:
char * __cdecl std::_debugheapallocator<char>::allocate(unsigned int,void const
*)" (?allocate@?$_debugheapallocator@d@std@@qaapadipbx @z)
h:\livingston\cadra2\tool\adradwg.dll : fatal error lnk1120: 2 unresolved extern
als
system failed errno = 0
my locally compiled code (in cad_dwg.lib) is built debug (including exhostappservices.obj which is
built from the source file distributed with 2.6.3) in both cases.
the nodebug build used to work fine using the nodebug 2.2.0 dwgdirect libraries. in fact before 2.6.3 i used only the nodebug dwgdirect libraries to build all the time.
thanks in advance for any help anyone can provide,
barry
did you tried just delete ncb, clean/rebuild all?
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)