www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/04/07:39:11

Xref: news2.mv.net comp.os.msdos.djgpp:2430
From: Hans-Bernhard Broeker <Broeker AT axpmgr DOT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Complex numbers again
Date: Wed, 03 Apr 1996 18:14:54 +0200
Organization: RWTH Aachen
Lines: 16
Message-ID: <3162A3FE.6C04D027@axpmgr.physik.rwth-aachen.de>
References: <MAILQUEUE-101 DOT 960401155348 DOT 384 AT merlin DOT e-technik DOT uni-erlangen DOT de>
NNTP-Posting-Host: axpcl4.physik.rwth-aachen.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael Schuster wrote:
> The error is:
> Complex: undeclared (first use this function)
> 

Complex is there, but you have to #include <_complex.h>
to get at it (on a 'real' OS, that would be <Complex.h>,
but on DOS, that would conflict with <complex.h>).

The background on this is that libg++ 2.7 has a 
*template*, complex<type>, in <complex.h> and the older class
Complex is now a typedef complex<double> Complex, and
has its own header file, to keep things as modular
as possible, I suppose.

Hans-Bernhard Broeker (Aachen, Germany)

- Raw text -


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