This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Compiler error - missing iconv.h with -mno-cygwin
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, ian at underpressuredivers dot com
- Date: Mon, 26 Jan 2009 05:51:24 -0700
- Subject: Re: Compiler error - missing iconv.h with -mno-cygwin
- References: <023f01c97fa3$fc3b95d0$f4b2c170$@com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ian Puleston on 1/26/2009 3:51 AM:
> But iconv.h does exist in /usr/include, so why can the compiler not find it?
> Is it looking somewhere different for include files when compiling with
> -mno-cygwin?
Yes, the compiler is looking somewhere else when you use -mno-cygwin;
after all, that option means that you are not compiling for cygwin
(implicitly, it means you are cross-compiling for mingw). The confusion
caused by this option that turns on cross-compilation is also the reason
that the gcc-4 release will not support -mno-cygwin. Search the list
archives for more details. Ask the mingw list if you need more details of
why mingw does not provide iconv.h.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkl9scwACgkQ84KuGfSFAYAajACcCQbBJJ440PrUjZZGrxbi8CVE
Bt0An1NXNS5HKnmY3/ebm7bDyKj+glWo
=FTn8
-----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/