All pastes #191553 Raw Edit

Untitled

public text v1 · immutable
·published 2006-10-05 02:42 UTC
rendered paste body
 gcc -Wall new.cpp -o caca
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c                        ++/4.1.1/backward/iostream.h:31,
                 from new.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/backward/back                        ward_warning.h:32:2: warning: #warning This file includes at least one deprecate                        d or antiquated header. Please consider using one of the 32 headers found in sec                        tion 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 h                        eader <iostream.h>. To disable this warning use -Wno-deprecated.
/tmp/ccwAXak7.o: In function `__static_initialization_and_destruction_0(int, int                        )':
new.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'
/tmp/ccwAXak7.o: In function `__tcf_0':
new.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccwAXak7.o: In function `main':
new.cpp:(.text+0xc7): undefined reference to `std::cout'
new.cpp:(.text+0xcc): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >::operator<<(int)'
new.cpp:(.text+0xdc): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<ch                        ar, std::char_traits<char> >&, char const*)'
new.cpp:(.text+0xed): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<cha                        r, std::char_traits<char> >&)'
new.cpp:(.text+0xf4): undefined reference to `std::cout'
new.cpp:(.text+0xf9): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (                        *)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccwAXak7.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[keld@darkness estructura]$ vi new.cpp 
[keld@darkness estructura]$ gcc -Wall new.cpp -o caca
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c                        ++/4.1.1/backward/iostream.h:31,
                 from new.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/backward/back                        ward_warning.h:32:2: warning: #warning This file includes at least one deprecate                        d or antiquated header. Please consider using one of the 32 headers found in sec                        tion 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 h                        eader <iostream.h>. To disable this warning use -Wno-deprecated.
/tmp/cc9ioD2u.o: In function `__static_initialization_and_destruction_0(int, int                        )':
new.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'
/tmp/cc9ioD2u.o: In function `__tcf_0':
new.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'
/tmp/cc9ioD2u.o: In function `main':
new.cpp:(.text+0xc7): undefined reference to `std::cout'
new.cpp:(.text+0xcc): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >::operator<<(int)'
new.cpp:(.text+0xdc): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<ch                        ar, std::char_traits<char> >&, char const*)'
new.cpp:(.text+0xed): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<cha                        r, std::char_traits<char> >&)'
new.cpp:(.text+0xf4): undefined reference to `std::cout'
new.cpp:(.text+0xf9): undefined reference to `std::basic_ostream<char, std::char                        _traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (                        *)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/cc9ioD2u.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status