Re: [sigc] Problem in compiling code on linux Red Hat 9.0



On Sun, 2005-04-10 at 08:39 +0100, Dinesh Ahuja wrote:
> Hi All,
> 
> Could anyone guide me on how to get rid of the
> following compilation errors on Red Hat linux 9.0. I
> am using gcc-3.2.2-5 to compile the libsigc code.

This looks like a similar error that we have seen recently with g++ 3.2.
You might try using libsigc++ 2.0.6 instead of the newer version that
you probably have. However, you should be using official packages from
your distro (or fedora.us for Red Hat 9), and these packages should just
provide the correct versions.

This is already in bugzilla:
http://bugzilla.gnome.org/show_bug.cgi?id=168261

I would welcome a patch to make the latest libsigc++ version work for
gcc 3.2.


> Compilation errors are as follows:
> 
>  g++ -DHAVE_CONFIG_H -I.. -I.. -g -O2 -MT lambda.lo
> -MD -MP -MF .deps/lambda.Tpo -c
> adaptors/lambda/lambda.cc  -fPIC -DPIC -o
> .libs/lambda.o
> ../sigc++/type_traits.h: In instantiation of
> `sigc::is_base_and_derived<sigc::lambda_base,
> sigc::internal::lambda_select1>':
> adaptors/lambda/lambda.cc:8:   instantiated from
> `sigc::lambda<sigc::internal::lambda_select1>'
> adaptors/lambda/lambda.cc:8:   instantiated from here
> ../sigc++/type_traits.h:118: invalid use of undefined
> type `struct
>    sigc::is_base_and_derived<sigc::lambda_base,
> sigc::internal::lambda_select1>
>    '
> ../sigc++/type_traits.h:96: declaration of `struct
>    sigc::is_base_and_derived<sigc::lambda_base,
> sigc::internal::lambda_select1>
>    '
> adaptors/lambda/lambda.cc: In instantiation of
> `sigc::lambda<sigc::internal::lambda_select1>':
> adaptors/lambda/lambda.cc:8:   instantiated from here
> adaptors/lambda/lambda.cc:8: non-constant `
>    sigc::is_base_and_derived<sigc::lambda_base,
>    sigc::internal::lambda_select1>::value' cannot be
> used as template argument
> 
> 
> 
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
> _______________________________________________
> libsigc-list mailing list
> libsigc-list gnome org
> http://mail.gnome.org/mailman/listinfo/libsigc-list
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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