Re: [sigc] How to include libsigc
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Giblock <paul paulzor com>
- Cc: libsigc++ list <libsigc-list gnome org>
- Subject: Re: [sigc] How to include libsigc
- Date: Mon, 13 Jun 2005 14:46:06 +0200
On Mon, 2005-06-13 at 08:45 -0400, Paul Giblock wrote:
> On Mon, 2005-06-13 at 15:04 +1000, Jeff Franks wrote:
> > I have used libsigc++-2.0 for some time, like this:
> > 1. I derived my base class from sigc::trackable.
> > 2. I added an include for <sigc++/sigc++.h> to the base class header file
> This is the main thing, I had to make a symbolic link
> from /usr/include/sigc++-2.0/sigc++ to /usr/include/sigc++ for it to
> find the header. But I still get a slew of errors
Not if you use pkg-config, as Jeff said. API versioning is a good thing.
> > 3. I added these lines to configure.ac:
> > PKG_CHECK_MODULES(SIGC, sigc++-2.0 >= 2.06)
> > AC_SUBST(SIGC_CFLAGS)
> > AC_SUBST(SIGC_LIBS)
> > 4. I added this line to Makefile.am:
> > AM_CXXFLAGS = @CXXFLAGS@ @SIGC_CFLAGS@
> > and I added $(SIGC_LIBS) to the end of the to the _LIBADD macro.
> I've never used Automake/Autoconf... I guess I'll give it a shot. Time
> to move up I suppose.
> Thanks Jeff,
murrayc murrayc com
] [Thread Prev