Re: [xml] The order of arguments when compiling



On Fri, Feb 17, 2012 at 7:12 AM,  <spam spam spam spam free fr> wrote:
Indeed, I don't know this option.
But, if I use it in my Makefile.am:
bin_PROGRAMS = xmlparsefile
xmlparsefile_SOURCES = main.c
xmlparsefile_LIBS = `xml2-config --libs`
xmlparsefile_CFLAGS = -Wall -Wextra `xml2-config --cflags`

The compile does now :
$ gcc -DPACKAGE_NAME=\"xmlparsefile\" -DPACKAGE_TARNAME=\"xmlparsefile\" -DPACKAGE_VERSION=\"0.1\" 
-DPACKAGE_STRING=\"xmlparsefile\ 0.1\" -DPACKAGE_BUGREPORT=\"samson pierre etud univ-montp2 fr\" 
-DPACKAGE_URL=\"\" -DPACKAGE=\"xmlparsefile\" -DVERSION=\"0.1\" -I. Â Â-Wall -Wextra `xml2-config --cflags` 
-g -O2 -MT xmlparsefile-main.o -MD -MP -MF .deps/xmlparsefile-main.Tpo -c -o xmlparsefile-main.o `test -f 
'main.c' || echo './'`main.c
mv -f .deps/xmlparsefile-main.Tpo .deps/xmlparsefile-main.Po

So, it does something like this :
$ gcc -Wall -Wextra `xml2-config --cflags` main.c

And I got the same error.

The "`xml2-config --libs`" has completely disappeared.

Are you sure about _LIBS option?


What files did you change?  If you changed Makefile.am did you
regenerate with autoreconf and then re-execute configure?

-- 
Earnie
-- https://sites.google.com/site/earnieboyd



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