Hallo Semjon
Ich habe die Datei in main2.cxx umbenennt und Dev-C++ angewiesen, sie als C++ zu komplimieren. Jetzt sieht’s noch schlimmer aus:
Compiler: Default compiler
Building Makefile: "D:\Sandro (frei)\Programmierung\Makefile.win"
Führt make... aus
make.exe -f "D:\Sandro (frei)\Programmierung\Makefile.win" all
g++.exe -D\_\_DEBUG\_\_ -c main2.cxx -o main2.o -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include" -pg -g3
gcc.exe -D\_\_DEBUG\_\_ main2.o -o "Projekt2.exe" -L"lib" -lgmon -pg -g3
main2.o(.text+0x3e): In function `ZNSt24\_\_copy\_backward\_dispatchIPSsS0\_12\_\_false\_typeE4copyES0\_S0\_S0\_':
C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text+0x1c4): In function `Z7listdirPKcRSt6vectorISsSaISsEEb':
D:/Sandro (frei)/Programmierung/main2.cxx:31: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text+0x2c7):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::allocator::allocator()'
main2.o(.text+0x2f6):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::basic\_string, std::allocator \>::basic\_string(char const\*, std::allocator const&:wink:'
main2.o(.text+0x35a):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text+0x380):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text+0x39c):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::allocator::~allocator()'
main2.o(.text+0x3ce):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `std::allocator::~allocator()'
main2.o(.text$\_ZNSt6vectorISsSaISsEED1Ev[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::~vector()]+0x16): In function `ZNSt24\_\_copy\_backward\_dispatchIPSsS0\_12\_\_false\_typeE4copyES0\_S0\_S0\_':
C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZNSt12\_Vector\_baseISsSaISsEED2Ev[std::\_Vector\_base, std::allocator \>, std::allocator, std::allocator \> \> \>::~\_Vector\_base()]+0x16):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZSt10\_ConstructISsSsEvPT\_RKT0\_[void std::\_Construct, std::allocator \>, std::basic\_string, std::allocator \> \>(std::basic\_string, std::allocator \>\*, std::basic\_string, std::allocator \> const&:wink:]+0x16):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZSt10\_ConstructISsSsEvPT\_RKT0\_[void std::\_Construct, std::allocator \>, std::basic\_string, std::allocator \> \>(std::basic\_string, std::allocator \>\*, std::basic\_string, std::allocator \> const&:wink:]+0x70):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::basic\_string(std::string const&:wink:'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x19):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x91):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::basic\_string(std::string const&:wink:'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x10c):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::string::operator=(std::string const&:wink:'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x12f):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x168):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x291): In function `Z7listdirPKcRSt6vectorISsSaISsEEb':
D:/Sandro (frei)/Programmierung/main2.cxx:45: undefined reference to `\_\_cxa\_begin\_catch'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x2d7):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `\_\_cxa\_rethrow'
main2.o(.text$\_ZNSt6vectorISsSaISsEE13\_M\_insert\_auxEN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsS1\_EERKSs[std::vector, std::allocator \>, std::allocator, std::allocator \> \> \>::\_M\_insert\_aux(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, std::basic\_string, std::allocator \> const&:wink:]+0x323):smiley::/Sandro (frei)/Programmierung/main2.cxx:48: undefined reference to `\_\_cxa\_end\_catch'
main2.o(.text$\_ZSt16\_\_introsort\_loopIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEiEvT\_S7\_T0\_[void std::\_\_introsort\_loop, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int\>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int)]+0x19): In function `ZNSt24\_\_copy\_backward\_dispatchIPSsS0\_12\_\_false\_typeE4copyES0\_S0\_S0\_':
C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZSt16\_\_introsort\_loopIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEiEvT\_S7\_T0\_[void std::\_\_introsort\_loop, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int\>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int)]+0x137):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::basic\_string(std::string const&:wink:'
main2.o(.text$\_ZSt16\_\_introsort\_loopIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEiEvT\_S7\_T0\_[void std::\_\_introsort\_loop, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int\>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int)]+0x186):C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text$\_ZSt16\_\_introsort\_loopIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEiEvT\_S7\_T0\_[void std::\_\_introsort\_loop, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int\>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, int)]+0x1b9): In function `Z7listdirPKcRSt6vectorISsSaISsEEb':
D:/Sandro (frei)/Programmierung/main2.cxx:31: undefined reference to `std::basic\_string, std::allocator \>::~basic\_string()'
main2.o(.text$\_ZSt12partial\_sortIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEEvT\_S7\_S7\_[void std::stuck\_out\_tongue:artial\_sort, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \> \>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> >:wink:]+0x16): In function `ZNSt24\_\_copy\_backward\_dispatchIPSsS0\_12\_\_false\_typeE4copyES0\_S0\_S0\_':
C:/Programme/Dev/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl\_heap.h: undefined reference to `\_\_gxx\_personality\_sj0'
main2.o(.text$\_ZSt12partial\_sortIN9\_\_gnu\_cxx17\_\_normal\_iteratorIPSsSt6vectorISsSaISsEEEEEvT\_S7\_S7\_[void std::stuck\_out\_tongue:artial\_sort, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \> \>(\_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector, std::allocator \>, std::allocator, std::allocator \> \> \> \>, \_\_gnu\_cxx::\_\_normal\_iterator, std::allocator \>\*, std::vector