error LNK2011: precompiled object not linked in; image may not run 问题解决方法
2011-03-28 16:34
639 查看
error LNK2011: precompiled object not linked in; image may not run 问题解决方法:
问题发生环境:A.exe 依赖B.lib,B.lib 依赖C.lib,B.lib 和C.lib 都是静态库
设置:A->B, B->C (->表示依赖),这种情况下,如果A/B/ C工程都在一个解决方案下,则没问题。
如果将C工程移除,然后让B工程链接C.lib, (也就是A->B,B->C, A,B 在同一解决方案下,C则直接用静态库C.lib),则出现error LNK2011错误。解决方法:A->(B,C)------就是A直接链接到B.lib和C.lib,B最好在C的前面。
问题发生环境:A.exe 依赖B.lib,B.lib 依赖C.lib,B.lib 和C.lib 都是静态库
设置:A->B, B->C (->表示依赖),这种情况下,如果A/B/ C工程都在一个解决方案下,则没问题。
如果将C工程移除,然后让B工程链接C.lib, (也就是A->B,B->C, A,B 在同一解决方案下,C则直接用静态库C.lib),则出现error LNK2011错误。解决方法:A->(B,C)------就是A直接链接到B.lib和C.lib,B最好在C的前面。
相关文章推荐
- error LNK2011: precompiled object not linked in; image may not run 问题解决方法
- error LNK2011: precompiled object not linked in; image may not run
- issue---bug fix---error LNK2011: precompiled object not linked in; image may not run
- SilverLight Canvas is not support in wpf 的问题解决方法
- Swift - whose view is not in the window hierarchy 问题解决方法
- mongoDB add user in v3.0 问题的解决(Property 'addUser' of object admin is not a func)
- spring boot could not resolve placeholder in string value 问题解决方法
- mongoDB add user in v3.0 问题的解决(Property 'addUser' of object admin is not a func)
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题解决方法
- 转:The given key was not present in the dictionary.(问题解决方法)
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Axis2 服务器端抛出ServiceClass object does not implement问题解决方法
- 【转】Keil调试局部变量显示"not in scope"的问题解决方法
- iOS 中支付宝 ’openssl/asn1.h' file not found问题 和 objc-class-ref in AlipaySDK问题解决方法
- mongoDB add user in v3.0 问题的解决(Property 'addUser' of object admin is not a func)
- centos username is not in the sudoers file 问题解决方法
- Axis2 服务器端抛出ServiceClass object does not implement问题解决方法
- Axis2 服务器端抛出ServiceClass object does not implement问题解决方法
- Fatal error: Using $this when not in object context in 解决方法
- java.lang.Exception: libsvm classes not in CLASSPATH!问题解决方法