Mail Archives: djgpp/2000/03/04/20:07:55
here my redirected output:
Reading specs from e:/djgpp/lib/gcc-lib/djgpp/2.952/specs
gcc version 2.95.2 19991024 (release)
e:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c++ -v -D__GNUC__=2
-D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32
-DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2
-D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS
-Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386)
-D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_pentium__ -imacros e:/djgpp/lib/../include/sys/version.h -remap
cpplibtest.cpp e:/djgpp/tmp\ccqMtaCf.ii
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
e:/djgpp/lang/cxx
e:/djgpp/include
e:/djgpp/lang/cxx
e:/djgpp/lib/gcc-lib/djgpp/2.952/include
e:/djgpp/include
End of search list.
The following default directories have been omitted from the search
path:
$DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
End of omitted list.
e:/djgpp/lib/gcc-lib/djgpp/2.952/cc1plus.exe e:/djgpp/tmp\ccqMtaCf.ii
-quiet -dumpbase cpplibtest.cc -version -o e:/djgpp/tmp\cc4I3A6E.s
GNU C++ version 2.95.2 19991024 (release) (djgpp) compiled by GNU C
version 2.95.2 19991024 (release).
e:/djgpp/bin/as.exe -o e:/djgpp/tmp\ccapuWwM.o e:/djgpp/tmp\cc4I3A6E.s
e:/djgpp/lib/gcc-lib/djgpp/2.952/collect2.exe e:/djgpp/lib/crt0.o
-Le:/djgpp/lib -Le:/djgpp/lib/gcc-lib/djgpp/2.952 -Le:/djgpp/bin
-Le:/djgpp/lib e:/djgpp/tmp\ccapuWwM.o -lgcc -lc -lgcc -Tdjgpp.djl
e:/djgpp/tmp\ccapuWwM.o(.text+0x84):cpplibtest.cpp: undefined reference
to `Stash::initialize(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xac):cpplibtest.cpp: undefined reference
to `Stash::add(void const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xc8):cpplibtest.cpp: undefined reference
to `Stash::count(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xdc):cpplibtest.cpp: undefined reference
to `endl(ostream &)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xef):cpplibtest.cpp: undefined reference
to `Stash::fetch(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x113):cpplibtest.cpp: undefined reference
to `cout'
e:/djgpp/tmp\ccapuWwM.o(.text+0x118):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x123):cpplibtest.cpp: undefined reference
to `ostream::operator<<(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x12e):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x139):cpplibtest.cpp: undefined reference
to `ostream::operator<<(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x144):cpplibtest.cpp: undefined reference
to `ostream::operator<<(ostream &(*)(ostream &))'
e:/djgpp/tmp\ccapuWwM.o(.text+0x164):cpplibtest.cpp: undefined reference
to `Stash::initialize(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x184):cpplibtest.cpp: undefined reference
to `ifstream::ifstream(int, char const *, int, int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x217):cpplibtest.cpp: undefined reference
to `ios::operator void *(void) const'
e:/djgpp/tmp\ccapuWwM.o(.text+0x243):cpplibtest.cpp: undefined reference
to `Stash::add(void const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x275):cpplibtest.cpp: undefined reference
to `Stash::fetch(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x294):cpplibtest.cpp: undefined reference
to `endl(ostream &)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2bd):cpplibtest.cpp: undefined reference
to `cout'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2c2):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2cd):cpplibtest.cpp: undefined reference
to `ostream::operator<<(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2d8):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2e3):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x2ee):cpplibtest.cpp: undefined reference
to `ostream::operator<<(ostream &(*)(ostream &))'
e:/djgpp/tmp\ccapuWwM.o(.text+0x308):cpplibtest.cpp: undefined reference
to `Stash::cleanup(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x317):cpplibtest.cpp: undefined reference
to `Stash::cleanup(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x352):cpplibtest.cpp: undefined reference
to `ifstream::~ifstream(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x3a3):cpplibtest.cpp: undefined reference
to `ifstream::~ifstream(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x3e1):cpplibtest.cpp: undefined reference
to `__malloc_alloc_template<0>::__malloc_alloc_oom_handler'
e:/djgpp/tmp\ccapuWwM.o(.text+0x3f2):cpplibtest.cpp: undefined reference
to `endl(ostream &)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x3ff):cpplibtest.cpp: undefined reference
to `cerr'
e:/djgpp/tmp\ccapuWwM.o(.text+0x404):cpplibtest.cpp: undefined reference
to `ostream::operator<<(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x40f):cpplibtest.cpp: undefined reference
to `ostream::operator<<(ostream &(*)(ostream &))'
e:/djgpp/tmp\ccapuWwM.o(.text+0x470):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_end_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x476):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x48a):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x496):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x4dc):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x4e8):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x504):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_heap_size'
e:/djgpp/tmp\ccapuWwM.o(.text+0x543):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_free_list'
e:/djgpp/tmp\ccapuWwM.o(.text+0x54e):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x55e):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x576):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x57c):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x5b9):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_free_list'
e:/djgpp/tmp\ccapuWwM.o(.text+0x5df):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x5e4):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x5f0):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_end_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x622):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_end_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x63a):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x643):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_heap_size'
e:/djgpp/tmp\ccapuWwM.o(.text+0x648):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_start_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x654):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_end_free'
e:/djgpp/tmp\ccapuWwM.o(.text+0x6c9):cpplibtest.cpp: undefined reference
to `__default_alloc_template<false, 0>::_S_free_list'
e:/djgpp/tmp\ccapuWwM.o(.text+0x7e2):cpplibtest.cpp: undefined reference
to `__out_of_range(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x83e):cpplibtest.cpp: undefined reference
to `__length_error(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x9e8):cpplibtest.cpp: undefined reference
to `__out_of_range(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xa3e):cpplibtest.cpp: undefined reference
to `__length_error(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xbd0):cpplibtest.cpp: undefined reference
to `__length_error(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xc50):cpplibtest.cpp: undefined reference
to `istream::ipfx1(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xc72):cpplibtest.cpp: undefined reference
to `ios::rdbuf(void) const'
e:/djgpp/tmp\ccapuWwM.o(.text+0xc9f):cpplibtest.cpp: undefined reference
to `streambuf::sbumpc(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xcce):cpplibtest.cpp: undefined reference
to `ios::setstate(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xd1b):cpplibtest.cpp: undefined reference
to `ios::setstate(int)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xd38):cpplibtest.cpp: undefined reference
to `istream::isfx(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0xe2d):cpplibtest.cpp: undefined reference
to `ios::operator!(void) const'
e:/djgpp/tmp\ccapuWwM.o(.text+0xe8e):cpplibtest.cpp: undefined reference
to `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::nilRep'
e:/djgpp/tmp\ccapuWwM.o(.text+0xf2a):cpplibtest.cpp: undefined reference
to `basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >::nilRep'
e:/djgpp/tmp\ccapuWwM.o(.text+0x1023):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::copy(char *, char const *,
unsigned long)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x114b):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::move(char *, char const *,
unsigned long)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x1194):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::set(char *, char const &,
unsigned long)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x128b):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::eos(void)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x12e2):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::assign(char &, char const &)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x1346):cpplibtest.cpp: undefined
reference to `string_char_traits<char>::length(char const *)'
e:/djgpp/tmp\ccapuWwM.o(.text+0x150a):cpplibtest.cpp: undefined
reference to `__default_alloc_template<false, 0>::_S_free_list'
e:/djgpp/tmp\ccapuWwM.o(.text+0x159e):cpplibtest.cpp: undefined
reference to `__default_alloc_template<false, 0>::_S_free_list'
collect2: ld returned 1 exit status
----------
autoexec.bat looks like that :
set PATH=E:\DJGPP\BIN;%PATH%
set DJGPP=E:\DJGPP\DJGPP.ENV
-----------
I know that the "Undefined Reference" problem usually occurs when mixing
up old and new versions of DJGPP/GCC, but this is the very first I ever
installed a gcc-compiler. This can be clearly seen by the
version-numbers above (specs and gcc..). In this example I have taken a
100%-ANSI-C++ compliant piece of code made by Bruce Eckel. It's a C++
Library Tester creating Stash. The structure is simple: one header, one
object-file, one tester-file - the latter compiles succesfully - but
when trying to link them up - the compiler flags those errors. please
help, I can't see what I did wrong....
thanks
caramaith
- Raw text -