Date: Fri, 26 Apr 1996 11:44:08 +0200 (IST) From: Eli Zaretskii To: Roland Exler Cc: djgpp AT delorie DOT com Subject: Re: Libraries for Complex-class In-Reply-To: <317F9CDC.7B5F@jk.uni-linz.ac.at> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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::operator/=(complex 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.