Re: [sigc] How to include libsigc
- From: Jeff Franks <jcfranks tpg com au>
- To: Paul Giblock <paul paulzor com>
- Cc: libsigc-list gnome org
- Subject: Re: [sigc] How to include libsigc
- Date: Mon, 13 Jun 2005 15:04:33 +1000
Paul Giblock wrote:
I've read all the tutorials but I cannot find any information on
actually including libsigc++-2.0 in a project. This is what I get when
I include the libsigc headers:
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
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.
Hope that's helpful
Jeff.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]