Mail Archives: djgpp/2000/11/30/08:28:17
On 30 Nov 2000, at 10:38, Kai Ruottu wrote:
> On Mon, 27 Nov 2000 06:00:46 -0000, "Paulo J. Matos aka PDestroy"
> <pdestroy AT netcabo DOT pt> wrote:
>
> >Hi all,
> >After some long hours correcting errors in my program. Real debugging time!
> >I tried to compile the project and in the phase of linking the compiler
> >(gpp) just showed up with some bunch of not-understandable errors like:
> >"cliente.o(.text+0x49b):cliente.cpp: undefined reference to
> >`Ecran::mostraIface(basic_string<char, string_char_traits<char>,
> >__default_alloc_template<false, 0> >, unsigned int)'
> >banco.o(.text+0x8a):banco.cpp: undefined reference to
> >`Ecran::mostraIface(basic_string<char, string_char_traits<char>,
> >__default_alloc_template<false, 0> >, unsigned int)'
> >banco.o(.text+0x448):banco.cpp: undefined reference to
> >`Ecran::mostraIface(basic_string<char, string_char_traits<char>,
> >__default_alloc_template<false, 0> >, unsigned int)'
> >banco.o(.text+0x1236):banco.cpp: undefined reference to `Lista<unsigned
> >int>::~Lista(void)'
> >banco.o(.text+0x132b):banco.cpp: undefined reference to `Lista<unsigned
> >int>::~Lista(void)'"
> >
> >I cannot understand what this means, nor I have an idea of how to solve
> >this. Any ideas about what is this, and any solutions?
>
> And your GCC/G++ version is...
>
> The gcc-2.8.x used to give these kind of unresolved symbols related
> to 'basic_string'... But there was a patch for this and it happened
> long long time ago... So just a guess assuming that you did everything
> ok, didn't forget any libs etc...
>
If You have latest update of DJGPP port of gcc-2.95.2 and binutils-2.10
try using option -mbnu210 when compiling sources. If You have
earlier versions then upgrade
Andris
- Raw text -