【发布时间】:2011-11-26 17:43:30
【问题描述】:
如果不查看我的 XCode 项目中的每个源文件,有没有办法找出哪个 #include 触发了以下警告?
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
在XCode中点击错误只会打开backward_warning.h文件,完全没用。
我知道警告的含义,我知道如何修复它(当我看到有问题的文件并可以查看它的#includes 时)...但我只是不知道如何找到导致错误的文件!
【问题讨论】:
标签: c++ xcode compiler-warnings deprecated