www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/28/05:08:17

Date: Wed, 28 Feb 1996 11:52:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Luk Wing Kong <h9505585 AT hkueee DOT hku DOT hk>
Cc: djgpp AT delorie DOT com
Subject: Re: Undefine Reference
In-Reply-To: <31340D89.4509@hkueee.hku.hk>
Message-Id: <Pine.SUN.3.91.960228114814.11954D-100000@is>
Mime-Version: 1.0

On Wed, 28 Feb 1996, Luk Wing Kong wrote:

> A lot of messages of "undefine reference to XXX(ostream &)" comes out at the end of compilation.
> How to solve it?

Did you read the DJGPP FAQ list (available as faq200b.zip from the same 
place you get DJGPP)?  It answers this questions in section 8.7 (you 
didn't tell gcc to link in the C++ library).  Invoke gcc thusly:

	gcc prog.cc -o prog.exe -lgpp

or use gxx (which does the above automatically for you) instead of gcc, 
when compiling C++ programs.

Please search the FAQ for your problems before posting, especially if you
are a newcomer to DJGPP.  The FAQ has a large index near its end;  start
by looking up your problem in that index. 

- Raw text -


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