Re: [xml] The order of arguments when compiling

On Fri, Feb 17, 2012 at 7:12 AM,  <spam spam spam spam free fr> wrote:
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

That looks more like this:
$ gcc -Wall -Wextra  `xml2-config --cflags` -c -o main.o main.c

There should be a second linking step which should like this:
$ gcc -Wall -Wextra  `xml2-config --cflags` main.o `xml2-config --ldflags`

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