[xml] Newbie: libxml2 on cygwin



I have downloaded + installed cygwin with the libxml2 package.

When I try to include the library, gcc cannot find it - I have to manually include the directory where libxml is stored. Once built into an object file, I have problems linking it with libxml, getting the following error:

$ gcc -o test htmltest.o
htmltest.o(.text+0x22):htmltest.c: undefined reference to `htmlParseFile'
collect2: ld returned 1 exit status

What am I doing wrong?

Thanks in advance,
James Shaw

_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]