This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
c++ beginner on gcc
- From: ramesh kumar <rameshkumar_trk at yahoo dot co dot in>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 27 Jul 2004 11:27:45 +0100 (BST)
- Subject: c++ beginner on gcc
I am just writing my first c++ program on gcc compiler
and i am not able to compile it. this is the program i
saved in
#include<iostream.h>
void main()
{
cout<<"hi this is my first program";
}
i typed the command "gcc hi.cpp"
and this is the message i got. i am not sure about the
gcc compiler version number. i downloaded it recently
from gnu's site.
In file included from
/usr/include/c++/3.2.3/backward/iostream.h:31,
from hi.cpp:1:
/usr/include/c++/3.2.3/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.
hi.cpp:3: `main' must return `int'
please give me reply
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony