Problems with c++
I'm trying to start learning cpp, and I'm stuck on the first hello world program. #include <iostream.h> int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!"; return 0; } When I'm trying to compile it using GCC I'm getting errors. ======Begin Error======== elius@buga cpp $ gcc 1.cpp -o 1.c In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/iostream.h:31, from 1.cpp:1: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/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. /tmp/cceborwk.o(.text+0x1b): In function `main': : undefined reference to `std::cout' /tmp/cceborwk.o(.text+0x20): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std:
perator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /tmp/cceborwk.o(.text+0x49): In function `__static_initialization_and_destruction_0(int, int)': : undefined reference to `std::ios_base::Init::Init[in-charge]()' /tmp/cceborwk.o(.text+0x7a): In function `__tcf_0': : undefined reference to `std::ios_base::Init::~Init [in-charge]()' /tmp/cceborwk.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status =======End Error======== What is the problem ? how to modify it to work with gcc?