I changed my Makefile.am and I regenerated with autoreconf and then re-executed the configure script. I think I have a bad Makefile.am. The order of arguments when compiling is incorrect when I use _LDFLAGS. And when I try with _LIBS, it doesn't use it at all.
Do you see what is wrong in my Makefile.am file? ----- Mail original ----- De: "Earnie Boyd" <ear...@users.sourceforge.net> À: "spam spam spam spam" <spam.spam.spam.s...@free.fr> Cc: xml@gnome.org Envoyé: Vendredi 17 Février 2012 16:09:24 Objet: Re: [xml] The order of arguments when compiling On Fri, Feb 17, 2012 at 7:12 AM, <spam.spam.spam.s...@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.pie...@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 _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml