| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.7 required=5.0 tests=AWL,BAYES_20,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| From: | "Ian Puleston" <ian AT underpressuredivers DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | Compiler error - missing iconv.h with -mno-cygwin |
| Date: | Mon, 26 Jan 2009 02:51:04 -0800 |
| Message-ID: | <023f01c97fa3$fc3b95d0$f4b2c170$@com> |
| MIME-Version: | 1.0 |
| 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 |
| Note-from-DJ: | This may be spam |
Hi,
I have a program that uses libxml2 and compiles fine under Cygwin when I
compile it as a Cygwin app. However, I want to compile a stand-alone version
so I updated the Makefile to add CFLAGS += -mno-cygwin and LDFLAGS +=
-mno-cygwin (I'm using gcc 3.4.4), and with these it fails to compile
because it cannot find iconv.h:
gcc -I/usr/include/libxml2 -mno-cygwin -c -o xmlParse.o xmlParse.c
In file included from /usr/include/libxml2/libxml/parser.h:797,
from xmlParse.c:36:
/usr/include/libxml2/libxml/encoding.h:28:19: iconv.h: No such file or
directory
In file included from /usr/include/libxml2/libxml/parser.h:797,
from xmlParse.c:36:
/usr/include/libxml2/libxml/encoding.h:136: error: parse error before
"iconv_t"
/usr/include/libxml2/libxml/encoding.h:136: warning: no semicolon at end of
struct or union
/usr/include/libxml2/libxml/encoding.h:137: warning: data definition has no
type or storage class
make: *** [xmlParse.o] Error 1
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?
Ian
--
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 |