[root@localhost home]$ gcc test.cxx -o test
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
from test.cxx:1:
/usr/include/c++/3.2.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.
/tmp/ccinUPZW.o(.text+0x19): In function `main':
: undefined reference to `std::cout'
/tmp/ccinUPZW.o(.text+0x1e): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccinUPZW.o(.text+0x4a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/ccinUPZW.o(.text+0x79): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/ccinUPZW.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[root@localhost home]$
A ovako izgleda test.cxx
#include <iostream.h>
int main()
{
cout << "tekst\n";
return 0;
}
------------------------------
Totalni sam pocetnik, primer je iz knjige ,kontam da nisam nista pogresno prepisao.Pomagajte sta se desava!!!