[Top][All Lists]

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

Re: Suggestion regarding header files...

From: Ari Johnson
Subject: Re: Suggestion regarding header files...
Date: Fri, 1 Nov 2002 19:39:17 -0600 (CST)

If you compiled without XML support, but you try to include cc++/xml.h,
you should be informed that you're trying to use a part of the library
that you didn't install.  I think that xml.h is a good place to put this,
and also that it should be an #error (just like trying to start a car
without an engine is an error and not something that can be ignored as a
 -- Ari Johnson

On Fri, 1 Nov 2002, Federico Montesino Pouzols wrote:

>       Well, cc++ is designed so that it can be compiled without xml
> support (because you do not have libxml or because you specify
> --without-xml to configure). I think that a #warning in xml.cpp
> (implementation of all XML classes) saying "xml related classes are
> not being compiled in Common C++ libraries" or something similar would
> be good so as to avoid problems like the one you describe.
> On Fri, Nov 01, 2002 at 04:12:19AM -0600, Ari Johnson wrote:
> >
> > I was just scratching my head after a reinstall, wondering why I all the
> > sudden couldn't use XMLStream, and then I realized that it was being
> > #ifdef'd out of the header because I forgot to install libxml2 before
> > building CommonC++.  Maybe an #error for the #ifndef in each header this
> > happens in would be helpful.  Thanks.
> >  -- Ari Johnson
> >
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp

reply via email to

[Prev in Thread] Current Thread [Next in Thread]