msado15.tlh和log4cplus::helpers::Properties编译时'Properties'命名冲突
如题,我的比较大的工程中,报命名冲突,可两个,一个msado15.tlh是编译出来的,一个是log4cplus日志静态库都不能改名!里面的Properties报命名冲突,怎么办:
1>d:\asup\debug\msado15.tlh(160) : error C2872: 'Properties' : ambiguous symbol
1> could be 'd:\asup\debug\msado15.tlh(78) : Properties'
1> or 'd:\asup\include\log4cplus\helpers\property.h(33) : log4cplus::helpers::Properties' log4cplus msado15.tlh Properties ambiguous?symbol
[解决办法]
importADO的动态库的时候不要加 no_namespace,ADO就会放在ADODB命名空间中。