Mail Archives: djgpp/1996/08/20/19:14:46
Gurunandan R Bhat <grbhat AT unigoa DOT ernet DOT in> wrote:
>i can suggest two problems right away:
>(1) you must #include<_complex.h> not complex.h. the underscore is
>there to compensate for the fact that the correct header file is
>Complex.h and MS-DO$ is not case sensitive. i think it is mentioned in
>the FAQ (sorry eli ;)
>(2) complex numbers are declared with a uppercase C like so:
>Complex c Complex(1.1, 2.2)
I think <complex> is the ANSI draft standard header. The standard
also allows <complex.h> for compatibility reasons. One is a wrapper
around the other, and the contents are the STL "complex" definitions.
The old <Complex.h> (<_complex.h> in DOS) is non-ANSI standard by now,
and DJGPP's <_complex.h> merely #include-s <complex> and typedefs
Complex as complex<double>.
--
Weiqi Gao
weiqigao AT crl DOT com
- Raw text -