[Xfc-dev] Re: XFC Compilation error with gcc 3.3.5 and 3.4.3

Xavier Otazu xotazu at cvc.uab.es
Thu Mar 3 18:54:35 CET 2005


	Hello:

	I am sorry for my last e-mail. I compiled it with libsigc++-2.0.5 (I thought my
version was 2.0.6). I have installed 2.0.6, and now XFC compiles and install
correctly.

	I am sorry for the noise ...

cheers

Xavier



On Thu, 3 Mar 2005 18:30:32 +0100
Xavier Otazu <xotazu at cvc.uab.es> wrote:

> 
> 
> 	Hello:
> 
> 	I downloaded the xfc code. I compiled on a Slackware, 2.4.29 kernel and
gcc
> 3.3.5 and 3.4.3.
> 
> 	I execute autogen.sh and configure without problem. When executing
'make'
> using diferent versions of gcc I receive different errors (I bet they are
> related to XFC code syntax). When using gcc 3.4.3 I receive the following
error
> 
> 
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../../libXFCcore -I../../../libXFCui -g -O2
> -Wall -ansi -pedantic-errors -I/usr/local/include/sigc++-2.0
> -I/usr/local/lib/sigc++-2.0/include -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -g -O2 -Wall -ansi -pedantic-errors -MT
> asyncqueue.lo -MD -MP -MF .deps/asyncqueue.Tpo -c asyncqueue.cc  -fPIC -DPIC
-o
> .libs/asyncqueue.o In file included from
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/lambda.h:26,             
 
>  from /usr/local/include/sigc++-2.0/sigc++/adaptors/adaptors.h:30,            
 
>   from /usr/local/include/sigc++-2.0/sigc++/sigc++.h:26,                 from
> ../../../libXFCcore/xfc/trackable.hh:30,                 from
> ../../../libXFCcore/xfc/object.hh:28,                 from asyncqueue.hh:28,
>                  from asyncqueue.cc:21:
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:79: error:
> non-template `deduce_result_type' used as template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:79: note: use
> `typename sigc::adaptor_trait<T_functor, 
>
sigc::is_base_and_derived<sigc::adaptor_base,T_functor>::value>::adaptor_type::
> template deduce_result_type' to indicate that it is a template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:82: error:
> declaration does not declare anything
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:245: error:
> non-template `deduce_result_type' used as template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:245: note: use
> `typename sigc::adaptor_trait<T_functor, 
>
sigc::is_base_and_derived<sigc::adaptor_base,T_functor>::value>::adaptor_type::
> template deduce_result_type' to indicate that it is a template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:250: error:
> declaration does not declare anything
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:458: error:
> non-template `deduce_result_type' used as template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:458: note: use
> `typename sigc::adaptor_trait<T_functor, 
>
sigc::is_base_and_derived<sigc::adaptor_base,T_functor>::value>::adaptor_type::
> template deduce_result_type' to indicate that it is a template
> /usr/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:465: error:
> declaration does not declare anything make[5]: *** [asyncqueue.lo] Error 1
> make[5]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCcore/xfc/glib'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCcore/xfc/glib'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCcore/xfc'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCcore'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCcore'
> make: *** [all-recursive] Error 1
> 
> 
> 
> When using gcc 3.3.5 I receive:
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../../libXFCcore -I../../../libXFCui -g -O2
> -Wall -ansi -pedantic-errors -I/usr/local/include/sigc++-2.0
> -I/usr/local/lib/sigc++-2.0/include -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
> -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-g
> -O2 -Wall -ansi -pedantic-errors -MT colorselection.lo -MD -MP -MF
> .deps/colorselection.Tpo -c colorselection.cc  -fPIC -DPIC -o
> .libs/colorselection.o /usr/local/include/c++/3.3.5/bits/stl_construct.h: In
> function `void    std::_Construct(_T1*, const _T2&) [with _T1 =
Xfc::Gdk::Color,
> _T2 =    Xfc::Gdk::Color]':
> /usr/local/include/c++/3.3.5/bits/stl_vector.h:599:   instantiated from `void
> std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = Xfc::Gdk::Color,
> _Alloc = std::allocator<Xfc::Gdk::Color>]' colorselection.cc:88:  
instantiated
> from here /usr/local/include/c++/3.3.5/bits/stl_construct.h:78: error: no
> matching    function for call to `Xfc::Gdk::Color::operator new(unsigned int,
> void*&)' ../../../libXFCcore/xfc/trackable.hh:168: error: candidates are:
static
> void*    Xfc::Trackable::operator new(unsigned int)
> make[5]: *** [colorselection.lo] Error 1
> make[5]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCui/xfc/gtk'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCui/xfc/gtk'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCui/xfc'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCui'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/src/xfc-4.3.0/libXFCui'
> make: *** [all-recursive] Error 1
> 
> 
> 
> 
> cheers
> 
> Xavier



More information about the Xfc-dev mailing list