[xml] More trouble with libxml



Okay, I've worked some of this out.  You have to put this in your makefile:

CC = gcc

test: htmltest.o
        $(CC) `xml2-config --libs` -o test

htmltest.o: htmltest.c
        $(CC) `xml2-config --cflags` -c htmltest.c

The C file builds to an object file okay, but linking still doesn't work:

$ make -f makefile
gcc `xml2-config --cflags` -c htmltest.c
gcc `xml2-config --libs` -o test
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference to `WinMain 16'
collect2: ld returned 1 exit status
make: *** [test] Error 1

This seems like a weird error message - don't know how it's related to libxml.

Any other suggestions?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




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