delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/14/20:12:59

From: Mike Gee <mike AT dsma DOT dp DOT ua>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
Date: Mon, 15 May 2000 03:39:48 +0300
Organization: Alkar-Teleport News server
Lines: 27
Message-ID: <tfhuhsk4fvuds0qo0rgvc56uli6prih6p1@4ax.com>
References: <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> <lm6uhso1th87jm2kvs4d747bb1v9s8fsk9 AT 4ax DOT com> <391F289E DOT CB26D14C AT mtu-net DOT ru>
NNTP-Posting-Host: m0.dsma.dp.ua
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 15 May 2000 02:28:46 +0400, "Alexei A. Frounze"
<alex DOT fru AT mtu-net DOT ru> wrote:

>I tried your suggestions, but the error is still the same.
>
>Compiler points to the line where I try to define that complex variable.
>
>No matter how I define it:
>  complex j = complex (0,1);
>or
>  complex j(0,1);
>
>I have still the same problem. "complex" is an unknown thing, although I
>have a lot of include files for complex math: complex.h, complex,
>complext.h, ...

oh my. did you run <complex> through visual_grep?

float_complex, not complex.
Or double_complex, or long_double_complex

Or you can use the trick from C++3ed with typedefing float_complex as
complex


best regards
Mike

- Raw text -


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