免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4701 | 回复: 15
打印 上一主题 下一主题

[C++] vc6.0 动态链接转为静态链接 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-01-29 13:47 |只看该作者 |倒序浏览
现在有个程序,以前是用动态链接做的,现在要把改为静态链接,再程序里面添加#paragam 什么的 都不行,程序还是默认的采用动态的 怎么办呢 救救我吧

论坛徽章:
0
2 [报告]
发表于 2013-01-29 14:08 |只看该作者
up  up  大牛们帮我来解决啊

论坛徽章:
0
3 [报告]
发表于 2013-01-29 14:24 |只看该作者
有个链接   http://blog.csdn.net/scut1135/article/details/6288823

/*
.如果别人只是需要一个可以玩的可执行档,那么还是采用静态编译比较好。这时候不设置"Options",先以同样的方法设置"Project Settings->Link->General",在"Object/library modules"中输入自己需要的lib(前两种方法的lib都是stublib文件夹中的,这次是lib文件夹中的)。然后设置"Project Settings->Link->Input",在"Additional library references"中输入当前lib的路径。需要在代码中加入"#pragma comment(lib,"ippsemerged.lib")"等需要的lib。此种方法需要先调用初始化函数ippStaticInit();和ippStaticInitCpu();声明于ippcore.h中。并且需要-emerge.lib,-merge.lib,ippcorel.lib。
*/

我按照上面的方法去弄  不行

论坛徽章:
59
2015年亚洲杯之约旦
日期:2015-01-27 21:27:392015年亚洲杯之日本
日期:2015-02-06 22:09:41拜羊年徽章
日期:2015-03-03 16:15:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015元宵节徽章
日期:2015-03-06 15:50:392015年亚洲杯之阿联酋
日期:2015-03-19 17:39:302015年亚洲杯之中国
日期:2015-03-23 18:52:23巳蛇
日期:2014-12-14 22:44:03双子座
日期:2014-12-10 21:39:16处女座
日期:2014-12-02 08:03:17天蝎座
日期:2014-07-21 19:08:47
4 [报告]
发表于 2013-01-29 14:38 |只看该作者
change your dll project from DLL to static library (both dll & .lib project has .lib file, but in actually the .lib of dll file just a include help code, whitch help the linker to make a executable image)

by the way. vc6.0 is out of date. in my old win-xp pc, it can run but frequently crashing while compling.
and i don't want to install it in my pc now.

论坛徽章:
0
5 [报告]
发表于 2013-01-29 14:52 |只看该作者
回复 4# folklore


    Thanks, but I still do not know how to solve the problem, which makes me cry

论坛徽章:
59
2015年亚洲杯之约旦
日期:2015-01-27 21:27:392015年亚洲杯之日本
日期:2015-02-06 22:09:41拜羊年徽章
日期:2015-03-03 16:15:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015元宵节徽章
日期:2015-03-06 15:50:392015年亚洲杯之阿联酋
日期:2015-03-19 17:39:302015年亚洲杯之中国
日期:2015-03-23 18:52:23巳蛇
日期:2014-12-14 22:44:03双子座
日期:2014-12-10 21:39:16处女座
日期:2014-12-02 08:03:17天蝎座
日期:2014-07-21 19:08:47
6 [报告]
发表于 2013-01-29 15:08 |只看该作者
@zuochao6646112
i am allready tell your the solution:
convert your dll project from DLL to static library. the promble is dll project, not the exe project.

论坛徽章:
0
7 [报告]
发表于 2013-01-29 15:12 |只看该作者
folklore 发表于 2013-01-29 15:08
@zuochao6646112
i am allready tell your the solution:
convert your dll project from DLL to static  ...



I really don`t know how to do it, sir!
Could you tell me more about it?

论坛徽章:
0
8 [报告]
发表于 2013-01-29 15:18 |只看该作者
回复 6# folklore

Could you contact me with my QQ: 249352201?
I will thank you with my sincerity!

   

论坛徽章:
0
9 [报告]
发表于 2013-01-29 15:21 |只看该作者
大哥,vc要改它的编译配置的吧,不能只改代码

论坛徽章:
0
10 [报告]
发表于 2013-01-29 15:42 |只看该作者
回复 9# lxyscls_cu


    可以更详细点吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP