首页 > 解决方案 > ATL C++ 抛出编译错误

问题描述

当我尝试将 Visual Studio 安装的 ATL 库添加到我的 C++ 项目时,ATL 文件中有很多编译错误。例如:

error: 'warning' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
 } __pragma(warning(suppress:4127)) while (0)

可能是什么原因造成的?

标签: c++visual-studioclionatl

解决方案


推荐阅读