www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/28/14:06:11

From: "Dave Korn" <no DOT spam AT my DOT mailbox DOT invalid>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp,gnu.gcc.help
References: <8vstc7$ion$1 AT venus DOT telepac DOT pt>
Subject: Re: C++ Project Compilation
Lines: 35
Organization: Lumber Cartel (tinlc) Members #2234-2237 (owing to browser refresh)
X-Newsreader: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Message-ID: <1hSU5.337$4o3.215533@newsr1.u-net.net>
Date: Tue, 28 Nov 2000 17:54:56 -0000
NNTP-Posting-Host: 193.123.2.233
X-Complaints-To: news AT u-net DOT net
X-Trace: newsr1.u-net.net 975433917 193.123.2.233 (Tue, 28 Nov 2000 17:51:57 GMT)
NNTP-Posting-Date: Tue, 28 Nov 2000 17:51:57 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paulo J. Matos aka PDestroy wrote in message
<8vstc7$ion$1 AT venus DOT telepac DOT pt>...
>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?


  It means you've omitted something vital - either a library or a .o
file - from the linker command. Remember, it's not enough to
just #include a .h file - you have to tell the linker where the code
for the routines is to be found as well.

     DaveK
--
They laughed at Galileo.  They laughed at Copernicus.  They laughed at
Columbus. But remember, they also laughed at Bozo the Clown.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019