Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" From: "Norman Vine" To: "Ross Smith II" , References: Subject: Re: expat-1.95.5: undefined reference to `XML_ParserCreate' Date: Sun, 22 Dec 2002 12:42:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 > #include > 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/