#include
int main() { cout << "Hello World!\n"; return 0; }
Perhaps you have deprication messages turned off, or you don't care about them. I understand this will compile. I just want to know what Stallman et al think I /should/ be doing.
If you're working with a language as complex as C++, and you really want the details, you need a copy of the standard. It costs money, and isn't free to distribute, but the GCC coders bought a copy and worked to it. If you want to know what Stallman et al were thinking, read the standard. Then you'll know. For most of us, a copy of the Stroustrup book is adequate.
g++ hello.cpp In file included from /usr/include/g++/backward/iostream.h:31, from hello.cpp:1: /usr/include/g++/backward/backward_warning.h:32:2: warning: #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
header for C++ includes, or <sstream> instead of the deprecated header . To disable this warning use -Wno-deprecated.
Which is clear enough, isn't it? The file "includes at least one deprecated or
antiquated header". The code contains "#include