Mail Archives: djgpp/1996/04/01/08:39:06
>
>
> Gruess Euch!
>
> I' got a problem:
> I wanted to use complex numbers with a programme (see below).
> But I didn't manage to compile it.- I tried it with -lm, -lgpp, -O ...
> and have no idea what to do, although 'complex.h' is in the include
> directory.
>
> Any idea?
>
> #include <stdio.h>
> #include <math.h>
> #include<complex.h>
> Void main()
> { Complex c1;
> c1.re=10;
> }
>
Without information about the error message you are getting
I can only guess where possible problem could lie:
1) Void is written void.
2) Is Complex really written that way? Is it a typedef? I don't have
my djgpp installation here handy so I don't know what is in complex.h.
> Michi
> ---------------------------------------------------------------------
> Dipl.-Ing * * * * * * * *
> Michael Schuster * * * *
> Lehrstuhl fuer * * * * * * * *
> Elektrische Energieversorgung * * * *
> Friedrich Alexander Universitaet Erlangen * * * * * * *
> Cauerstrasse 4
> TEl:(0)9131 85 8762 Fax:(0)9131 85 9541
> ----------------------------------------------------------------------
>
>
--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
- Raw text -