Re: [sigc] How to include libsigc



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]