如何在Visual C++中故意创建一个编译器警告(在#error模型中,除了作为警告),它将在错误列表中显示正确的文件和行号?
GCC和其他编译器提供#warning,但MSVC编译器没有.
http://support.microsoft.com/kb/155196上的"解决方案" 未在Visual Studio错误列表中进行解析.
c++ compiler-construction pragma compiler-warnings visual-studio
c++ ×1
compiler-construction ×1
compiler-warnings ×1
pragma ×1
visual-studio ×1