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]

Re: Complex.h file


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Coppens wrote:
[snip]
> complex.h is not found.
> 
> A search in the cygwin tree reveals:
> 
> /usr/lib/i686-pc-mingw32/3.4.4/include/c++/backward/complex.h
> /usr/lib/i686-pc-cygwin/3.4.4/include/c++/backward/complex.h
> /usr/include/mingw/complex.h

Easy way out: add the -mno-cygwin parameter to CFLAGS.  That means "use mingw
headers and libraries" to produce a windows only executable (no cygwin dll
dependencies); this will work if the package you are compiling doesn't depend on
libraries not supplied by mingw.

> But, as I use gcc, and normal c (not c++), I suspect none of these are
> seen. On my Linux machine, all compiles well (same gcc version).
> 
> 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
[snip]

I'm not sure about the standard, but complex is defined in libstdc++ wich is c++
not c, and I don't have it in gcc 3.4.4 only on 4.0.2 (not distributed with
Cygwin yet).

HTH
- --
René Berber
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkN/ZEkACgkQL3NNweKTRgzTxgCfey5vL7UQT+P4UbbWDZvOXbvQ
goQAoP4+jnaFomRuiqyWvPfpm0HXs6Ox
=u521
-----END PGP SIGNATURE-----


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