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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 06:57 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odamfcapp compilation

odamfcapp compilation
odamfcapp compilation
how do i compile odamfcapp with vc8 or vc7
in vc8 i tried to compile all ingoing libs as debug. afterwards i compiled odamfcapp as debug and got the following error (nearly the same in release):
------ build started: project: odamfcapp, configuration: debug win32 ------
linking...
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszallocfilemapname" (?g_pszallocfilemapname@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszkernelobjfmt" (?g_pszkernelobjfmt@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "class catlallocator g_allocator" (?g_allocator@@3vcatlallocator@@a) already defined in atls.lib(externs.obj)
atlsd.lib(atltrace.obj) : error lnk2005: "unsigned int (__stdcall* atl::g_pfngetthreadacp)(void)" (?g_pfngetthreadacp@atl@@3p6gixza) already defined in atls.lib(atltrace.obj)
link : warning lnk4098: defaultlib 'msvcrt' conflicts with use of other libs; use /nodefaultlib:library
link : warning lnk4199: /delayloadleacc.dll ignored; no imports found from oleacc.dll
acissavedialog.obj : error lnk2019: unresolved external symbol "public: static class odrxclass * __cdecl odassurfbody::desc(void)" (?desc@odassurfbody@@sapavodrxclass@@xz) referenced in function "public: static class odsmartptr<class odassurfbody> __cdecl odassurfbody::cast(class odrxobject const *)" (?cast@odassurfbody@@sa?av?$odsmartptr@vodassurfbo dy@@@@pbvodrxobject@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_odrecomputedimblockmodu le(class odstring const &)" (?odrxcreatemoduleobject_for_odrecomputedimblockmo dule@@yapavodrxmodule@@abvodstring@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_bitmapmodule(class odstring const &)" (?odrxcreatemoduleobject_for_bitmapmodule@@yapavod rxmodule@@abvodstring@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_autosurfservicesmodule( class odstring const &)" (?odrxcreatemoduleobject_for_autosurfservicesmodul e@@yapavodrxmodule@@abvodstring@@@z)
../../../../../exe/vc8/debug/odamfcapp.exe : fatal error lnk1120: 4 unresolved externals
build log was saved at "file://d:\srcdwg\dwgdirect_2.3.1\projectfiles\win32\msvc8 \examples\odamfcapp\debug\buildlog.htm"
odamfcapp - 10 error(s), 2 warning(s)
========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
any help?
laurs
laurs,
as i stated in the other thread a minute ago...
if you open
projectfiles\win32\msvc8\allexamples.sln
and build the "odamfcapp" project, that should build everything.
last edited by pete rimkus; 12th june 2007 at 05:43 amfff">.
odamfcapp release mode ok
thanks
i could compile odamfcapp in release mode but not in debug with vc8 sp1.
did you see the same: that debug gave at least 4 errors like this one:
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
?
what do i do wrong?
laurs
mmmmm...it builds fine in debug for me.
i'm using the vc2005 non-sp version of dd2.3.1, though.
i used vc2005 sp1 and it builds fine for me in debug and release mode.
i did get one error with the odpc3read project not being able to find the zlib.h file, but it did not prevent any of the other projects from building.
as pete suggested, it is best to open the allexamples.sln and then do a full rebuild, instead of opening individual projects. this way all the dependancies will be correctly built as well.
regards,
sijmen.
odamfcapp build in debug
i could compile all in relase, except odpc3read project not being able to find the zlib.h file, as for sijmen it did link well in release.
in debug a lot of libs are missing in vc8mdd (11 projects gives linker errors). if i change the project linker additional directories, it links to the non debug versions of the libs. ex: 'dd_vc8md_pdftoolkit.lib', but i get at least 4 error like:
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
in the odamfcapp link.
any ideas?
laurs
perhaps you did not download debug libs, or mixed versions somehow?
vladimir
debug compilation of odamfcapp
i downloaded the debug libs and the nonlibs again, to start from the beginning.
in debug compilation i still got some failures, and in release only the one which did not preven odamfcapp to run.
i installed msvc 2005 sp1 before starting version 2.3.1, so i think there must be a setting some where in the projects which fools around me.
my projects are on drive d: , could that do it?
laurs
please perform the following steps:
1. open projectfiles\win32\msvc8\allexamples.sln,
2. select allexamples.vcproj as a starting project,
3. select active configuraiton "debug - ...",
4. build solution,
5. post the errors obtained.
vladimir
odamfcapp compile
thanks for your help.
i compiled using the short description from vladimir, and that clarified the problem for me. it was a mix of debug-libs from vc7 and vc8. i deleted al libs and installed from scratch and everything compiled fine.
laurs
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】libraries compilation options yang686526 DirectDWG 0 2009-05-06 04:45 PM
【转帖】compilation of gdal with dwgdirect libraries on fedora core yang686526 DirectDWG 0 2009-05-04 05:58 PM
【转帖】compilation errors yang686526 DirectDWG 0 2009-05-04 05:57 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多