Re: [xslt] Tutorial compile problem...



On Wed, Nov 14, 2001 at 11:36:11AM -0600, Christopher Farley wrote:
> Since I updated to libxslt-1.0.7 and libxml-2.4.10, programs linked
> against libxslt have not been compiling. This includes the libxslt
> tutorial in the doc directory of the libxslt release.
> 
> I'm running FreeBSD4.4-STABLE, and here is the output of my failed
> tutorial compilation:
> 
> 
> seward:/tmp> gcc -o libxslt_tutorial -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/libxslt -L/usr/local/lib -lxml2 -lxslt libxslt_tutorial.c
> In file included from libxslt_tutorial.c:31:
> /usr/local/include/libxslt/xslt.h:51: syntax error before `extern'
> /usr/local/include/libxslt/xslt.h:58: syntax error before `extern'
> /usr/local/include/libxslt/xslt.h:65: syntax error before `extern'
> /usr/local/include/libxslt/xslt.h:72: syntax error before `extern'
> seward:/tmp>

  Fixed in CVS, add

#ifndef LIBXSLT_PUBLIC
#define LIBXSLT_PUBLIC
#endif

before the first occurence,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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