www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <014001c2a9e1$80fdd610$533dba8c@sfdev3> |
Reply-To: | "Norman Vine" <nhv AT cape DOT com> |
From: | "Norman Vine" <nhv AT cape DOT com> |
To: | "Ross Smith II" <ross AT smithii DOT com>, <cygwin AT cygwin DOT com> |
References: | <NDBBJINIMKJKPGEBBJLKAEGHFGAA DOT ross AT smithii DOT com> |
Subject: | Re: expat-1.95.5: undefined reference to `XML_ParserCreate' |
Date: | Sun, 22 Dec 2002 12:42:29 -0500 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
X-Virus-Scanned: | Cape.Com VirusScan, no known virus found |
Ross Smith writes: > I'm trying to compile a simple expat program: > > #include <stdio.h> > #include <expat.h> > int main() { > XML_ParserCreate(NULL); > return 0; > } > > but I get: > > $ gcc -lexpat -L/lib expattest.c > /cygdrive/...:expattest.c: undefined reference to `XML_ParserCreate' try % gcc -o expattest expattest.c -lexpat the order of the arguments to gcc *matter* Norman -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |