查看单个帖子
旧 2009-05-07, 05:47 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】unresolved External Compiling With Msvc 2005

unresolved external compiling with msvc 2005
unresolved external compiling with msvc 2005
i have previously been using dwgdirect 1.14.01 with vc 2003 for many months with no problems.
i am porting my app to vc 2005, so i downloaded the 1.14.02 vc 2005 files.
i now get the following compile error:
error lnk2019: unresolved external symbol "public: wchar_t * __thiscall odwstring::getbuffersetlength(int)"
(?getbuffersetlength@odwstring@@qaepa_wh@z) referenced in function "class odwstring __cdecl odstringtowidechar(char const *,unsigned int)" (?odstringtowidechar@@ya?avodwstring@@pbdi@z) odfilebuf.obj
yes, i have dd_vc8md_root.lib included in my project dependancies.
anyone out there have any suggestions?
perhaps the problem is with wchar_t treated as built-in type by default in vc8
in dd this option is turned off (same as before).
vladimir
the solution proposed in
worked for me too.
me too. it's working fine now with that set to 'no'
i'm trying to move to dwgdirect 2.1.0 and the same sort of stupidity is occuring again.
oda are you listening? we need a set of libraries compiled with wchar_t as a native type. it is not possible for us (i.e. all the users of dwgdirect out here) to arbitrarily change our compiler flags to make you happy.
in the next update it will be possible to compile client applications with /zc:wchar_t+
vladimir
good news.
when can we have it?
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)