delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <46A8845B.2080208@cox.net> |
Date: | Thu, 26 Jul 2007 11:24:11 +0000 |
From: | Greg Chicares <chicares AT cox DOT net> |
User-Agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Using 'complex.h' and GCC-3.4.4-3 in Cygwin |
References: | <Pine DOT OSF DOT 4 DOT 58 DOT 0707261210050 DOT 23382 AT ax0rm1 DOT roma1 DOT infn DOT it> |
In-Reply-To: | <Pine.OSF.4.58.0707261210050.23382@ax0rm1.roma1.infn.it> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
On 2007-07-26 10:16Z, Angelo Graziosi wrote: > On Cygwin, gcc-3.4.4-3 (curr) fails to compile this simple test case [...] > $ gcc test_complex_h.c > test_complex_h.c:3:21: complex.h: No such file or directory I suppose newlib doesn't provide a full C99 implementation yet. This message would seem to confirm that: http://www.cygwin.com/ml/cygwin/2006-07/msg00758.html > test_complex_h.c: In function `main': > test_complex_h.c:8: error: parse error before "complex" If you change that line this way: - printf("sizeof(%s) = %ld\n", "complex float", sizeof(float complex)); + printf("sizeof(%s) = %ld\n", "complex float", sizeof(float _Complex)); then it compiles, and running it gives sizeof(complex float) = 8 so gcc has some support built in, though the C library doesn't implement the macro defined in C99 7.3.1/2 . It seems to be lacking the complex functions, too: I get undefined reference to `_cexpf' if I try to use cexpf() by providing my own prototype. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |