Re: Compiling libXML++ 2.6 with XCode 3.2.5
- From: Murray Cumming <murrayc murrayc com>
- To: Siska Ádám <sales sadam hu>
- Cc: libxmlplusplus-list gnome org
- Subject: Re: Compiling libXML++ 2.6 with XCode 3.2.5
- Date: Mon, 21 Feb 2011 12:52:13 +0100
On Mon, 2011-02-14 at 05:09 +0100, Siska Ádám wrote:
> Dear List,
>
>
> I've been trying for a while compiling a project (actually, the example project http://git.gnome.org/browse/libxml++/tree/examples/dom_parser/main.cc) with libXML++ on XCode, but I'm getting some weird compile-time errors. Namely, I'm getting 1604 error messages, most of them are like
>
> "/opt/local/var/macports/software/glibmm/2.24.2_0/opt/local/include/glibmm-2.4/glibmm/main.h:448:0 Macro "check" passed 2 arguments, but takes just 1 in /opt/local/var/macports/software/glibmm/2.24.2_0/opt/local/include/glibmm-2.4/glibmm/main.h"
Here is the code that it's complaining about:
bool check(int max_priority, std::vector<PollFD>& fds);
So I guess it's just that XCode defines a C macro (#define) for check().
That would be really silly and annoying but not completely unusual.
You should really find out what header is bringing in this macro
definition. Then try to include the libxml++ header only before that
header.
> or
>
> "/opt/local/var/macports/software/libsigcxx2/2.2.8_0/opt/local/include/sigc++-2.0/sigc++/functors/functor_trait.h:37:0 /opt/local/var/macports/software/libsigcxx2/2.2.8_0/opt/local/include/sigc++-2.0/sigc++/functors/functor_trait.h:37: error: expected identifier before numeric constant"
>
> What I've done was simply to set the "Header Search Path" and the "Library Search Path" settings and then compile the project.
>
> Do you have any idea why this is not working? Or could anyone tell me step-by-step how shall I build a simple project using libXML++ with XCode?
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]