Category:LibXML: Difference between revisions
Added a compilation option for C programs using libxml2
(compile) |
(Added a compilation option for C programs using libxml2) |
||
Line 9:
To compile a sample program that use the libxml2:
gcc -o example -I /usr/include/libxml2 -lxml2 example.c
If libxml2 headers are in the same folder as the Standard C headers, then the following will work :
gcc -o example -lxml2 example.c
|