Re: [xml] makefile sample

Thank Daniel, but I've the follwing problem: with this simple source:

#include <stdio.h>
#include <libxml/xmlreader.h>

int main(int argc, char **argv) {

   printf(stderr, "XInclude support COMPILED in\n");
int main(void) {
   fprintf(stderr, "XInclude support not compiled in\n");

compiled with your suggestion:

gcc -o reader1 `xml2-config --cflags` reader1.c `xml2-config --libs`

program display:

XInclude support not compiled in

And your similar examples work fine.......

Any ideas???


From: Daniel Veillard <veillard redhat com>
Reply-To: veillard redhat com
To: emanuele berinotti <beri75 hotmail com>
CC: xml gnome org
Subject: Re: [xml] makefile sample
Date: Tue, 5 Apr 2005 10:52:27 -0400

On Tue, Apr 05, 2005 at 04:29:43PM +0200, emanuele berinotti wrote:
> Hi,I'm a newbie, does anyone can post me a simple "makefile" to compile a > generic program with libxml2 support....I'm using Gcc 2.9.3 on Solaris 5.7
   "gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`"


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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