[root@ruizhi ruizhi]# gcc -o Example Example.c
/tmp/ccuPQvrW.o(.text+0x71): In function `main':
: undefined reference to `getche'
collect2: ld returned 1 exit status
[quote:1a147f484d="ruizhi"][root@ruizhi ruizhi]# gcc -o Example Example.c
/tmp/ccuPQvrW.o(.text+0x71): In function `main':
: undefined reference to `getche'
collect2: ld returned 1 exit status
[root@ruizhi ruizhi]# vim ex01.cxx
[root@ruizhi ruizhi]# g++ -o ex01.e ./ex01.cxx
In file included from /usr/include/c++/3.3.2/backward/iostream.h:31,
from ex01.cxx:1:
/usr/include/c++/3.3.2/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 <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.