This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Using 'complex.h' and GCC-3.4.4-3 in Cygwin
- From: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>
- To: cygwin at cygwin dot com
- Date: Thu, 26 Jul 2007 12:16:51 +0200 (MET DST)
- Subject: Using 'complex.h' and GCC-3.4.4-3 in Cygwin
On Cygwin, gcc-3.4.4-3 (curr) fails to compile this simple test case
(extracted by a little elaborate test) :
==================================================================
#include <stdio.h>
#include <stdint.h>
#include <complex.h>
#include <stdbool.h>
int main()
{
printf("sizeof(%s) = %ld\n", "complex float", sizeof(float complex));
return 0;
}
$ gcc test_complex_h.c
test_complex_h.c:3:21: complex.h: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^ ???
test_complex_h.c: In function `main':
test_complex_h.c:8: error: parse error before "complex"
==================================================================
On GNU/Linux Kubunto 6.06 with gcc-4.0.3 it is build without problems.
Cheers,
Angelo.
--
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/