Re: [xml] Recent postings about Cygwin linker problems



Gerrit P. Haase wrote:

Jitesh Verma wrote:
 > I tried to compile a simple XML test application provided in the
 > libxml tutorial

It seems they try to build their programs using the examples from the
docs.  By any chance, did they also just use the compile / link command
provided there?  Could this be changed to reflect the correct syntax?

I.e. this from the FAQ:
 gcc `xml2-config --cflags --libs` -o test test.c

which should be

gcc `xml2-config --cflags` -o object.o source.c
gcc -o program object.o `xml2-config --libs`


Windows / Cygwin is picky about those issues;)


BTW, it is correct here on the "Code Examples" page:
http://www.xmlsoft.org/examples/index.html
-> gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`


Regards,
Gerrit
--
=^..^=



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