This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]