Mail Archives: djgpp/2000/11/27/02:28:57
At 06:00 AM 11/27/2000 -0000, you 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?
What's so "not-understandable" about this? "undefined reference to
blahblahblah" means that the linker cannot find the symbols that you
referenced in your program. One solution is to check your command-line: the
order in which your object files appear in your command line matters during
linking stage.
HTH, bye.
nimrod_a_abing
--------------
+========================================+
| Home page: www.geocities.com/n_abing |
+========================================+
- Raw text -