This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

expat-1.95.5: undefined reference to `XML_ParserCreate'

I'm trying to compile a simple expat program:

#include <stdio.h>
#include <expat.h>
int main() {
return 0;

but I get:

$ gcc -lexpat -L/lib expattest.c
/cygdrive/...:expattest.c: undefined reference to `XML_ParserCreate'


$ nm /lib/libexpat.a | grep XML_ParserCreate
00000000 T _XML_ParserCreate

So, I tried compiling expat from source via:

cd /usr/src
tar xvzf expat-1.95.5.tar.gz
./ conf
./ prep
./ build

And tried to build one of their examples (make check, the expat test suite,
relies on to be installed):

cd expat-1.95.5/.obj
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/us
r/src/expat-1.95.5/lib -I. -lexpat -L.libs -o examples/outline.c
/cygdrive/...: In function `main':
/usr/src/expat-1.95.5/examples/outline.c:60: undefined reference to

and I *still* get the same error.

I've scanned the mailing list to no avail. What am I possibly doing wrong?

CYGWIN_NT-5.0 DURGA 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]