www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/26/05:08:25

Date: Fri, 26 Apr 1996 11:44:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
Cc: djgpp AT delorie DOT com
Subject: Re: Libraries for Complex-class
In-Reply-To: <317F9CDC.7B5F@jk.uni-linz.ac.at>
Message-Id: <Pine.SUN.3.91.960426114202.26200M-100000@is>
Mime-Version: 1.0

On Thu, 25 Apr 1996, Roland Exler wrote:

> gcc -Wall -O2   -m486  test.cc -o test
> 
> test.cc: In function `int main(int, char **)':
> test.cc:5: warning: unused parameter `int argc'
> test.cc:5: warning: unused parameter `char ** argv'
> test.cc(.text+0x5c): undefined reference to 
> `complex<double>::operator/=(complex<double> const &)'

Append -lstdcx to the end of the gcc command line.  The Complex class is 
in the Standard C++ library, and gcc doesn't search it by default.  If 
you don't have libstdcx.a in your lib subdirectory, get the latest 
lgp271b.zip (dated 22-Feb-96 or later) which includes it.

- Raw text -


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