Mail Archives: djgpp/1997/08/28/05:40:42
On Wed, 27 Aug 1997, Peter Berdeklis wrote:
> By the way, if the code fragment you give above works on other compilers
> dump them! This would be a compiler bug.
GCC supports complex type in C programs also, but there's no need to dump
it ;-).
It's just that the usage in the posted program is incorrect (if the
poster meant to write a C program). The declaration needs to be like
this:
__complex__ double a;
and you need to use the __real__ and __imag__ operators to access the two
components, e.g. to pass them to `printf'.
See the GCC docs (under "C Extensions") for more info.
- Raw text -