www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/01/08:39:06

Date: Mon, 01 Apr 1996 15:30:54 +0200 (MET DST)
From: "Christoph P. Kukulies" <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Subject: Re: Complex numbers
In-reply-to: <MAILQUEUE-101.960401131654.288@merlin.e-technik.uni-erlangen.de>
To: SCHUSTER AT merlin DOT e-technik DOT uni-erlangen DOT de (Michael Schuster)
Cc: djgpp AT delorie DOT com
Reply-to: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-id: <199604011330.PAA04575@gilberto.physik.rwth-aachen.de>
MIME-version: 1.0

> 
> 
> 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 -


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