当向导生成的插件编译出现问题时
2015-05-22 18:11
197 查看
编译调试release版本rc_finder插件碰到的问题:
1.Activate函数编译错误error C2039: 'Acitvate' : is not a member of 'CQQBasePlugin'
parent::Activate(); ///< 向导生成的文件有拼写错误.
2.生成的文件为exe文件,及路径调整
解决:
。General|Configuration Type设置为D"ynamic Library(.dll)"
。Linker|General|Output File:$(OutDir)\$(TargetFileName)
。General|Output Directory: $(BinPath)$(Configuration)\
。General|Intermediate Directory:.\$(Configuration)\
3.加载插件失败:用Dependency Walker检查发现导出的函数为_CreateModule@0.
原因:Linker|Input|Module Definition File未设置
解决:设置def文件.\$(ProjectName).def
4.无法调试
断点提示:Breakpoint will not currently be hit. No symbols loaded for this document
工程配置:
原因:C/C++|General|Debug Information Format为空
修改:设置为“/ZI”
相关设置:Linker|Debugging|Generate Debug Info设置为“Yes/DEBUG”
5.编译错误:Command line error D8016: '/ZI' and '/Ob1' command-line options are incompatible
解决:C/C++|Optimization|Inline Function Expansion:Default
6.error C2857: '#include' statement specified with the /YcStdAfx.h command-line option was not found in the source file
C/C++|Precompiled Headers|Precompiled Header:从"Create(Yc)"修改为"Not Using Precompiled Headers"
7.error LNK1104: cannot open file 'xerces-depdom_2.lib'
Linker|General|Additional Library Directoried:
增加:$(AdditionalLibPath)\$(IntDir)
***不需要xerces-depdom_2.lib,删除引入
1.Activate函数编译错误error C2039: 'Acitvate' : is not a member of 'CQQBasePlugin'
parent::Activate(); ///< 向导生成的文件有拼写错误.
2.生成的文件为exe文件,及路径调整
解决:
。General|Configuration Type设置为D"ynamic Library(.dll)"
。Linker|General|Output File:$(OutDir)\$(TargetFileName)
。General|Output Directory: $(BinPath)$(Configuration)\
。General|Intermediate Directory:.\$(Configuration)\
3.加载插件失败:用Dependency Walker检查发现导出的函数为_CreateModule@0.
原因:Linker|Input|Module Definition File未设置
解决:设置def文件.\$(ProjectName).def
4.无法调试
断点提示:Breakpoint will not currently be hit. No symbols loaded for this document
工程配置:
原因:C/C++|General|Debug Information Format为空
修改:设置为“/ZI”
相关设置:Linker|Debugging|Generate Debug Info设置为“Yes/DEBUG”
5.编译错误:Command line error D8016: '/ZI' and '/Ob1' command-line options are incompatible
解决:C/C++|Optimization|Inline Function Expansion:Default
6.error C2857: '#include' statement specified with the /YcStdAfx.h command-line option was not found in the source file
C/C++|Precompiled Headers|Precompiled Header:从"Create(Yc)"修改为"Not Using Precompiled Headers"
7.error LNK1104: cannot open file 'xerces-depdom_2.lib'
Linker|General|Additional Library Directoried:
增加:$(AdditionalLibPath)\$(IntDir)
***不需要xerces-depdom_2.lib,删除引入
相关文章推荐
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题(转)
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题(转)
- VS2008中编译通过,但调试时出现“未使用调试信息生成二进制文件”的问题
- 在vc6引入自己在VS编译生成的lib时出现 invalid or corrupt import object: unknown version的问题
- 关于Vs 2005 中出现编译通过,但运行时出现“未使用调试信息生成二进制文件”的问题
- Qt编译问题-向导生成的helloworld都编译出错
- JDA使用cmake生成sln工程后不能编译的情况。出现如下问题。
- 用定制的WINCE6.0生成的SDK编译成功出现的问题
- VS2005向导生成的win32程序编译GDI+问题
- 编译Qt4.8.0 生成动态库时出现的问题和解决办法
- 在编译的时候出现这个问题 LINK : 没有找到 C:\Users\...\transposeMatrix.exe 或上一个增量链接没有生成它;正在执行完全链接 我用的是VS2008
- Qt4.8.5 开发环境搭建没有生成makefile文件【编译出现的问题】
- 解决Chrome插件安装时出现的“程序包无效”问题
- idea actiBPM插件生成png文件 (解决没有Diagrams或Designer选项问题)
- 解决AndroidStudio编译出现available for offline mode的问题
- jsp获取JavaScript生成的中文cookie出现乱码问题解决方法
- 编译源码出现的问题couldn't find import for class
- make编译Qt原码时出现 /usr/bin/ld: cannot find -lXrender 问题的解决方法