Andrew E. Makeev a écrit :
Lebon Sylvain wrote:Ok i have got the same problem (it's surely my fault :p ) when i compile it: this->signal_configure_event().connect(sigc::mem_fun(*this, &function_resize_and_show_image)); or this->signal_expose_event().connect(sigc::mem_fun(*this, &function_resize_and_show_image)); the compiler tel me an error (see down). I precise that i am usign devcpp . And that all is working perfetly so i suposed there is somethong wrong in my code. Thank you to help me. Sylvain Error from devcpp compiler log: C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h: In static member function `static T_return sigc::internal::slot_call1<T_functor, T_return, T_arg1>::call_it(sigc::internal::slot_rep*, typename sigc::type_trait<T_arg3>::take) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]': C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:144: instantiated from `static void*(* sigc::internal::slot_call1<T_functor, T_return, T_arg1>::address())(void*) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:529: instantiated from `sigc::slot1<T_return, T_arg1>::slot1(const T_functor&) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:1157: instantiated from `sigc::slot<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::slot(const T_functor&) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]' hello.cpp:254: instantiated from here C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:136: error: void value not ignored as it ought to be C:/Dev-Cpp/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h: In member function `typename sigc::adaptor_functor<T_functor>::deduce_result_type<T_arg1, void, void, void, void, void, void>::type sigc::adaptor_functor<T_functor>::operator()(T_arg1) const [with T_arg1 = GdkEventExpose * const&, T_functor = sigc::bound_mem_functor0<void, ExampleWindow>]': C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:136: instantiated from `static T_return sigc::internal::slot_call1<T_functor, T_return, T_arg1>::call_it(sigc::internal::slot_rep*, typename sigc::type_trait<T_arg3>::take) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventEx pose*]' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:144: instantiated from `static void*(* sigc::internal::slot_call1<T_functor, T_return, T_arg1>::address())(void*) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:529: instantiated from `sigc::slot1<T_return, T_arg1>::slot 1(const T_functor&) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_return = bool, T_arg1 = GdkEventExpose*]' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/slot.h:1157: instantiated from `sigc::slot<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::slot(const T_functor&) [with T_functor = sigc::bound_mem_functor0<void, ExampleWindow>, T_retu rn = bool, T_arg1 = GdkEventExpose*]' hello.cpp:254: instantiated from here C:/Dev-Cpp/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error: no match for call to `(sigc::bound_mem_functor0<void, ExampleWindow>) (GdkEventExpose* const&)' C:/Dev-Cpp/include/sigc++-2.0/sigc++/functors/mem_fun.h:1781: note: candidates are: T_return sigc::bound_mem_functor0<T_return, T_obj>::operator()() cons t [with T_return = void, T_obj = ExampleWindow] C:/Dev-Cpp/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error: return-statement with a value, in function returning 'void' make.exe: *** [hello.o] Error 1 Execution terminated |
begin:vcard fn:LEBON Sylvain n:Sylvain;LEBON email;internet:lebon efrei fr tel;cell:0688012148 version:2.1 end:vcard