delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/19/13:57:45

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Tony Richardson <ar63 AT evansville DOT edu>
Subject: Re: Complex.h file
Date: Sat, 19 Nov 2005 18:55:33 +0000 (UTC)
Lines: 26
Message-ID: <loom.20051119T194631-42@post.gmane.org>
References: <20051119113646 DOT e162e782 DOT john AT jcoppens DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

John Coppens <john <at> jcoppens.com> writes:

> I'm tying to port a program of mine to cygwin, and have the following
> problem:
> 
> complex.h is not found.
> 
> The compiler complains about the missing complex.h and about the complex
> type in a file, even though I read gcc has complex C-99 support built-in
> since 3.4.1

Well gcc 3.4.4 has built-in support for complex types, i.e. the following works
(without including complex.h)

   _Complex double x = 7 + 8i;
   x += -3 - 4i;
   x *= 2 + 5i;
   x /= 3 - 4i;
   printf("(%f,%f)\n", creal(x), cimag(x));

but it does not have built-in support for all of the complex functions
that are declared in complex.h.  I would assume the "problem" is
more of newlib issue than a gcc one.

Tony Richardson



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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