Re: [sigc] Compilation Errors



Am 06.09.2004 13:58:22 schrieb(en) Ulrich Eckhardt:
Neil Chakrabarty wrote:
> I am trying to compile the hello world example provided with
libsigc++
> 2.0.3.  I know it should work because if I use the provided
Makefile,
> the program complies properly.
>
> Any suggestions?
>
> [root localhost examples]# g++ -I/usr/local/include/sigc++-2.0
   ^^^^ argh!
> hello_world.cc -c
> In file included from
> /usr/local/include/sigc++-2.0/sigc++/functors/slot.h:7,
>                  from
> /usr/local/include/sigc++-2.0/sigc++/signal_base.h:27, from
> /usr/local/include/sigc++-2.0/sigc++/signal.h:8, from
> /usr/local/include/sigc++-2.0/sigc++/sigc++.h:23, from
hello_world.cc:10:
> /usr/local/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:5:75:
> sigc++config.h: No such file or directory

You could have snipped all further output here, as this is where it
starts
going wrong. I think you just need to apply the info in 'man
pkg-config'.

That's correct. You should use
`pkg-config sigc++-2.0 --cflags`
to get the appropriate compiler and
`pkg-config sigc++-2.0 --libs`
for the appropriate linker flags.

Regards,

 Martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]