"hello! world" gives error
I am new to both C++ as well as Linux.
The following program is to print "hello! world"
When I complie it saying
c++ file1.cpp
The follwoing errors occur... what could be the reason?
-----------------------------------------------
[ashesh@ecl5 learnc]$ c++ file1.cpp
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from file1.cpp:2:
/usr/include/c++/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.
[ashesh@ecl5 learnc]$
-------------------------------------------
seems to be compiler problem
I have checked running the "hello!world" program on some other linux systsm. It worked fine.
So I think there seems to be some compiler problem... AndI think that is what the error is trying to say... some /usr/include/c++/3.2/iostream.... etc
But I cannot understand much of this. So can someone please let me know how I can uninstal the present compiler and install a new one... and from where can I get a c++ compiler which willwork on Linux Redhat 8.0