VS2005 link error:找不到.lib ; unrecognized flag '-typedil' in 'p2'
来源:互联网 发布:证明四色定理 c语言 编辑:程序博客网 时间:2024/06/07 10:31
在VS2010里编了个程序,编译完全正确;后来人家要2005版的,所以重新做了2005版的,编译时提示:找不到“aaa.lib;bbb.lib”。
aaa.lib和bbb.lib是我在工程属性的Link-Input里设置的库文件,但这显然是把aaa.lib;bbb.lib作为一个整体字符串来识别了,怎么回事?
后来发现,虽然在VS2010里,lib文件直接可以用分号来分隔,但是在VS2005里,需要用空格分隔。
然后,改成aaa.lib bbb.lib,再编译,提示:
1>fatal error C1007: unrecognized flag '-typedil' in 'p2'
1>LINK : fatal error LNK1257: code generation failed
上网查资料发现,应该是这个VS2005的程序引用了其他版本的VS编译出来的dll或者lib文件。
而我的bbb.lib就是在VS2010里编译出来的!
那么我试着在VS2005里来编译bbb.lib,由于bbb.lib(事实上就是jpeg.lib)是开源库,目前只找到了在VS2010下的编译办法,至于2005下编译,我再想想……
- VS2005 link error:找不到.lib ; unrecognized flag '-typedil' in 'p2'
- 链接的错误 fatal error C1007: unrecognized flag '-typedil' in 'p2'
- Error: unrecognized flag -version
- VS2005 link error
- link error WMStub.lib解决
- link error msvcprt.lib 解决
- link error:Cannot Open File 'python27_d.lib'
- Qt Link error之找不到构造函数
- OpenCV Error::: bad flag(parameter or structure field)(Unrecognized or unsupported array type)
- 运行amanda时报amandad: symbol lookup error: /lib/libamanda-2.6.1p2.so: undefined symbol: g_slist_free_fu
- Unrecognized option or flag, -sourcerootforupload
- error flag
- Error: Request format is unrecognized for URL unexpectedly ending in
- gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
- dshow link error in mobile dshow develop
- LINK : fatal error LNK1104: cannot open file 'mfcs42d.lib'
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib" - 解决
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
- web开发编码问题
- java 修饰符(public private protected friendly)的理解
- 实验室的杂活
- android系统的SQlite、OpenSSL、WebCore函数库分析(各函数库的功能、性能、分析)
- 命名管道<转>
- VS2005 link error:找不到.lib ; unrecognized flag '-typedil' in 'p2'
- PyQt在Windows XP上的编译
- TCP/IP协议栈的基本工作原理
- XCode编译警告和错误解决方法集锦
- Android 2.1 源码结构分析
- .Net 3.5中使用PLinq
- GitHub安装SSH公钥
- 5个数求最值
- 原码、补码和移码