编译调试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,删除引入