当向导生成的插件编译出现问题时

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值