Re: [sigc] Problems with sigc++config.h
- From: Murray Cumming <murrayc murrayc com>
- To: Bryan Forbes <bryan reigndropsfall net>
- Cc: libsigc++ list <libsigc-list gnome org>
- Subject: Re: [sigc] Problems with sigc++config.h
- Date: Fri, 02 Apr 2004 10:53:23 +0200
I have fixed this in cvs. I guess it's not normally a problem because
other libraries can include their config.h files only in .cc files
ratehr than public header files.
On Wed, 2004-03-31 at 21:23, Bryan Forbes wrote:
> I started compiling my program (Coaster), which includes its config.h
> for certain defines that aclocal sets up, when I got these warnings:
>
> In file included from common.h:13,
> from chooser.h:6,
> from chooser.cc:1:
> ../config.h:65:1: warning: "PACKAGE_BUGREPORT" redefined
> In file included
> from /opt/gnome26/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/functors/slot.h:7,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal_base.h:27,
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal.h:8,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/sigc++.h:23,
>
> from /opt/gnome26/include/glibmm-2.3/glibmm/dispatcher.h:24,
> from /opt/gnome26/include/glibmm-2.3/glibmm.h:32,
>
> from /opt/gnome26/include/gtkmm-2.3/gtkmm/filechooserdialog.h:6,
> from chooser.h:4,
> from chooser.cc:1:
> /opt/gnome26/lib/sigc++-1.9/include/sigc++config.h:38:1: warning: this
> is the location of the previous definition
> In file included from common.h:13,
> from chooser.h:6,
> from chooser.cc:1:
> ../config.h:68:1: warning: "PACKAGE_NAME" redefined
> In file included
> from /opt/gnome26/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/functors/slot.h:7,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal_base.h:27,
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal.h:8,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/sigc++.h:23,
>
> from /opt/gnome26/include/glibmm-2.3/glibmm/dispatcher.h:24,
> from /opt/gnome26/include/glibmm-2.3/glibmm.h:32,
>
> from /opt/gnome26/include/gtkmm-2.3/gtkmm/filechooserdialog.h:6,
> from chooser.h:4,
> from chooser.cc:1:
> /opt/gnome26/lib/sigc++-1.9/include/sigc++config.h:41:1: warning: this
> is the location of the previous definition
> In file included from common.h:13,
> from chooser.h:6,
> from chooser.cc:1:
> ../config.h:71:1: warning: "PACKAGE_STRING" redefined
> In file included
> from /opt/gnome26/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/functors/slot.h:7,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal_base.h:27,
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal.h:8,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/sigc++.h:23,
>
> from /opt/gnome26/include/glibmm-2.3/glibmm/dispatcher.h:24,
> from /opt/gnome26/include/glibmm-2.3/glibmm.h:32,
>
> from /opt/gnome26/include/gtkmm-2.3/gtkmm/filechooserdialog.h:6,
> from chooser.h:4,
> from chooser.cc:1:
> /opt/gnome26/lib/sigc++-1.9/include/sigc++config.h:44:1: warning: this
> is the location of the previous definition
> In file included from common.h:13,
> from chooser.h:6,
> from chooser.cc:1:
> ../config.h:74:1: warning: "PACKAGE_TARNAME" redefined
> In file included
> from /opt/gnome26/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/functors/slot.h:7,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal_base.h:27,
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal.h:8,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/sigc++.h:23,
>
> from /opt/gnome26/include/glibmm-2.3/glibmm/dispatcher.h:24,
> from /opt/gnome26/include/glibmm-2.3/glibmm.h:32,
>
> from /opt/gnome26/include/gtkmm-2.3/gtkmm/filechooserdialog.h:6,
> from chooser.h:4,
> from chooser.cc:1:
> /opt/gnome26/lib/sigc++-1.9/include/sigc++config.h:47:1: warning: this
> is the location of the previous definition
> In file included from common.h:13,
> from chooser.h:6,
> from chooser.cc:1:
> ../config.h:77:1: warning: "PACKAGE_VERSION" redefined
> In file included
> from /opt/gnome26/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/functors/slot.h:7,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal_base.h:27,
> from /opt/gnome26/include/sigc++-2.0/sigc++/signal.h:8,
>
> from /opt/gnome26/include/sigc++-2.0/sigc++/sigc++.h:23,
>
> from /opt/gnome26/include/glibmm-2.3/glibmm/dispatcher.h:24,
> from /opt/gnome26/include/glibmm-2.3/glibmm.h:32,
>
> from /opt/gnome26/include/gtkmm-2.3/gtkmm/filechooserdialog.h:6,
> from chooser.h:4,
> from chooser.cc:1:
> /opt/gnome26/lib/sigc++-1.9/include/sigc++config.h:50:1: warning: this
> is the location of the previous definition
>
> I checked out this file, and it has all the package variables defined in
> it. I propose that we put the one thing we need from that file in a
> separate file and install it instead of what we are doing now. Hope
> this helps.
--
Murray Cumming
www.murrayc.com
murrayc murrayc com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]