免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: zuochao6646112
打印 上一主题 下一主题

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

论坛徽章:
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
11 [报告]
发表于 2013-01-29 15:42 |只看该作者
according to the link that you are given.
IPP allready has static library that can be referenced directory.
so just:
1. delete the reference to YOUR_IPP_HOME/stublib/ippi.lib (search the project property to found if it has)
2. remove the copy of  ippi.lib from your project directory if there are any (via vs6.0's file manager, or project exploreror, i don't remenber its name)
3. add
#pragma comment(lib, "YOUR_IPP_HOME/lib/ippimerged.lib") to any .cpp file of your project.
or
just copy it to your project directory and add it by "add items" via vs6.0's project exploreror.
and use #pragma comment(lib, "ippimerged.lib")

read the description of ipp (such as readme.txt) to determine the file name  and location of file "ippimerged.lib".

论坛徽章:
0
12 [报告]
发表于 2013-01-29 16:16 |只看该作者
回复 11# folklore


    用英文太费事了,http://blog.csdn.net/scut1135/article/details/6288823
  以前程序是按照方法一这种方式写的,现在需要按照方法三这种方式,生成的exe能够直接运行,按照您给的方法改过之后,还是不行,sorry!

论坛徽章:
0
13 [报告]
发表于 2013-01-29 16:38 |只看该作者
回复 10# zuochao6646112


    我也是两年前做过,现在忘记了,要选择项目里面的编译选项,在static链接的地方加入,把动态的去掉,不能再具体了

论坛徽章:
0
14 [报告]
发表于 2013-01-29 16:55 |只看该作者
回复 13# lxyscls_cu


    只是改那个试过了 肯定不行   程序是写好的    我拿着写好的程序按照链接中方法三试了很多次   还是不行  觉得要改代码了   可是不知道怎么改

论坛徽章:
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
15 [报告]
发表于 2013-01-30 12:51 |只看该作者
@zuochao6646112
you are still link the dll .lib, not static .lib, check ipp online document to identify it.

觉得要改代码了

it is absolute not needed. static lib is act as a .cpp file. it just the linking promble, not compiling promblem.
so that i think change your src not helping

论坛徽章:
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
16 [报告]
发表于 2013-01-30 12:52 |只看该作者
check you project mode: debug mode and release mode. are you change the wrong configuration?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP