几何尺寸与公差论坛------致力于产品几何量公差标准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, 05:47 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】mfc in a static library odamfcapp.exe

mfc in a static library & odamfcapp.exe
mfc in a static library & odamfcapp.exe
i build odamfcapp.exe with: "use of mfc" option
set to "use mfc in a static library" but
when i check dll dependencies (tdump) there are
still dependencies to mfc71.dll.
how to build odamfcapp with static linking to mfc71.dll?
what libraries and what compiler do you use?
make sure that linker options does not contain references to mfc71
what functions are imported from mfc? (you may use ms "depends" tool to see that)
vladimir
i use visual studio 2003 and original .vcproj files from 13.02 (no changes)
in attachemnt i put the result of "tdump odamfcapp.exe"
my libraries:
excustobjs.lib
dd_vc2003md_rxrasterservices.lib
gs_winopengl.lib
gs_wingdi.lib
dd_vc2003md_br.lib
dd_vc2003md_acisrenderer.lib
dd_vc2003md_acisbuilder.lib
dd_vc2003md_modelergeometry.lib
windirectx.lib
dd_vc2003md_dbcommands.lib
dd_vc2003md_alloc.lib
dd_vc2003md_svgexport.lib
dd_vc2003md_dwfimport.lib
dd_vc2003md_gi.lib
glu32.lib
dd_vc2003md_jpeg.lib
dd_vc2003md_db.lib
dd_vc2003md_ge.lib
dd_vc2003md_gs.lib
dd_vc2003md_root.lib
opengl32.lib
dd_vc2003md_dwftoolkit.lib
dd_vc2003md_dwfexport.lib
dd_vc2003md_zlib.lib
dd_vc2003md_zip.lib
grippoints.lib
dd_vc2003md_spatialindex.lib
dd_vc2003md_bmpexport.lib
odbagfiler.lib
dd_vc2003md_rxplotstyleservices.lib
oleitemhandler.lib
and dirs for libs:
../../../../../lib/vc2003md,,../../../../../thirdparty/lib/win32/msvc6/dll/vc6md
all above are original settings.
attached files (89.8 kb, 7 views)

you cannot use md libraries with static mfc.
(see e.g. )
if you will switch to mt libraries look at relevant dd faq topic:
dd_faq.html#operatornewdefined
vladimir
i switch libs to mt,
remove dd_xxxxx_alloc.lib from proj, add some extern "c" { ...} as in faq
but still have a problem with linking during compilation.
can you send me the correct odamfcapp.vcproj file?
did you remove _afxdll symbol from preprocessor definitions?
what linker errors do you have?
(i have no project file for mt config)
vladimir
thanks a lot. you were right!
i forgot to remove _afxdll and add /force:multiple to linker options.
i've attached my odamfcapp.vcproj
best regards,
mk
attached files (3.1 kb, 20 views)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】C/C++中Static的作用详述 huangyhg vc编程 1 2009-10-16 10:14 PM
【转帖】how to add extended entity data yang686526 DirectDWG 0 2009-05-05 12:35 PM
【转帖】error while linking using mfc static library vc 96.00 yang686526 DirectDWG 0 2009-05-05 09:49 AM
【转帖】2005 link error yang686526 DirectDWG 0 2009-05-04 02:57 PM
【转帖】用static声明的函数和变量小结[转] huangyhg vc编程 0 2009-03-22 11:06 PM


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


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