Mail Archives: djgpp/1996/04/26/05:08:25
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 -