佚名通过本文主要向大家介绍了pr编译影片时出错,编译出错,java编译出错,arduino编译出错,编译影片时出错等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 编译出错,有谁能解
描述:
解决方案1:
描述:
在工程中添加了atl支持,编译时出现以下错误
e:\project\OPCenter\Connection.h(25) : error C2872: “CEvent” : 不明确的符号
可能是“c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxmt.h(125) : CEvent”
或 “c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlsync.h(51) : ATL::CEvent”
解决方案1:
好像是编译器不知道用那个event了吧?像大侠们学习。
解决方案2:Just add ATL:: to everything from ATL namespace.
解决方案3: There are two CEvent. Which one you do want to use?
Remove using namespace ATL; Add ATL:: before all ATL stuff you're using.
For example, if you want to use ATL's CEvent, write
ATL::CEvent