Re: [sigc] How to include libsigc
- From: Paul Giblock <paul paulzor com>
- To: Jeff Franks <jcfranks tpg com au>
- Cc: libsigc-list gnome org
- Subject: Re: [sigc] How to include libsigc
- Date: Mon, 13 Jun 2005 08:45:09 -0400
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
> 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,
Paul
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]