2006-1-7 09:32
魔鬼螳螂
如何编译带libxml库的程序?
请问高手们,
我装了libxml2后,写了个测试程序,但编译不成功。
过程如下:
gcc -o xmltest -g xmltest.c -I /usr/local/libxml2/include
/tmp/ccNtQVGz.o(.text+0x29): In function `main':
/home/air/xxt/xmltest/xmltest.c:16: undefined reference to `xmlNewDoc'
/tmp/ccNtQVGz.o(.text+0x4c):/home/air/xxt/xmltest/xmltest.c:17: undefined reference to `xmlNewDocNode'
……
……
请问如何编译带libxml库的程序啊?