12.11.2006, 15:57 Uhr
ZeroG
Posts: 1487
Nutzer
|
Hallo Leute,
habe gerade ein wenig mit c++ unter gcc 4.0.2 gespielt.
Das ist dabei herausgekommen:
Zitat: 2.RAM Disk:> gcc -o test -Wall test.cc
In file included from /gcc/lib/gcc/ppc-amigaos/4.0.2/../../../../include/c++/4.0.2/backward/stream.h:31,
from maxon.cc:1:
/gcc/lib/gcc/ppc-amigaos/4.0.2/../../../../include/c++/4.0.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/cc0jFlHf.o(.text+0x6a): In function 'Ausgabe(Liste const&)':
: undefined reference to 'std::cout'
/tmp/cc0jFlHf.o(.text+0x6e): In function 'Ausgabe(Liste const&)':
: undefined reference to 'std::cout'
/tmp/cc0jFlHf.o(.text+0x74): In function 'Ausgabe(Liste const&)':
: 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/cc0jFlHf.o(.text+0x88): In function 'Ausgabe(Liste const&)':
: 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/cc0jFlHf.o(.text+0xa0): In function 'Ausgabe(Liste const&)':
: 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/cc0jFlHf.o(.text+0xb4): In function 'Ausgabe(Liste const&)':
: 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/cc0jFlHf.o(.text+0x10c): In function 'Einfueg(Liste&, char const*, char const*)':
: undefined reference to 'operator new(unsigned)'
/tmp/cc0jFlHf.o(.text+0x314): In function 'AllesLoeschen(Liste&)':
: undefined reference to 'operator delete(void*)'
/tmp/cc0jFlHf.o(.text+0x3cc): In function 'Loeschen(Liste&, Eintrag*)':
: undefined reference to 'operator delete(void*)'
/tmp/cc0jFlHf.o(.text+0x538): In function '__static_initialization_and_destruction_0(int, int)':
: undefined reference to 'std::ios_base::Init::Init()'
/tmp/cc0jFlHf.o(.text+0x564): In function '__static_initialization_and_destruction_0(int, int)':
: undefined reference to 'std::ios_base::Init::~Init()'
Kann es sein das man unter gcc für c++ noch irgendwelche Linklibraries dazulinken sollte?
Wenn ja, welche?
Und sollte das nicht eigendlich automatisch passieren?
Schon mal danke im vorraus.
[ - Antworten - Zitieren - Direktlink - ]
|