This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: expat-1.95.5: undefined reference to `XML_ParserCreate'
- From: "Norman Vine" <nhv at cape dot com>
- To: "Ross Smith II" <ross at smithii dot com>, <cygwin at cygwin dot com>
- Date: Sun, 22 Dec 2002 12:42:29 -0500
- Subject: Re: expat-1.95.5: undefined reference to `XML_ParserCreate'
- References: <NDBBJINIMKJKPGEBBJLKAEGHFGAA.ross@smithii.com>
- Reply-to: "Norman Vine" <nhv at cape dot com>
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/