hi all ,
while compiling program on fedora 7 i am getting these many errors . i have no idea how to remove these errors and i cant figure out these many. can some one help me out wats going wrong and where and if i m going wrong in compiling please tell me the correct procedure to compiles the programs
[root@localhost ~]# gcc --version
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]# gcc manish.cpp
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/iostream.h:31,
from manish.cpp:1:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.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 <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/tmp/ccixGW8s.o: In function `__static_initialization_and_destruction_0(int, int)':
manish.cpp
.text+0x23): undefined reference to `std::ios_base::Init::Init()'
/tmp/ccixGW8s.o: In function `__tcf_0':
manish.cpp
.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccixGW8s.o: In function `main':
manish.cpp
.text+0x91): undefined reference to `std::cout'
manish.cpp
.text+0x96): 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*)'
manish.cpp
.text+0xa4): undefined reference to `std::cin'
'
manish.cpp
.text+0x124): undefined reference to `std::basic_ostream<char, std::char_traits<char> >:
perator<<(unsigned int)'
/tmp/ccixGW8s.o
.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[root@localhost ~]#