[sigc] usage of sigc



Dear all,
I compiled sigc and copy libsigc-2.0.la and libsigc-2.0.a to root my
source project.And add following flag to Make file:
-I/opt/libsigc++/include/sigc++-2.0 -I/opt/libsigc++/lib/sigc
++-2.0/include  -L/opt/libsigc++/lib -lsigc-2.0 libsigc-2.0.a
libsigc-2.0.la 
and add following header:
#include <sigc++/sigc++.h>
But i got the following errors:
What's problem?
/////////////////////////////////////////////////////////////////////////////////
root@debian:/home/mohsen/source codes/eCom# make 
/usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
g++ -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -ICommon -Itest -INetwork -IAudio -I/usr/i386/include -I/opt/libsigc
++/include/sigc++-2.0 -I/opt/libsigc++/lib/sigc++-2.0/include -I. -I. -x
c++-header -c PreHeader.h -o eCom.gch/c++
g++ -c -include eCom -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -ICommon -Itest -INetwork -IAudio -I/usr/i386/include -I/opt/libsigc
++/include/sigc++-2.0 -I/opt/libsigc++/lib/sigc++-2.0/include -I. -I. -o
main.o main.cpp
In file included from /opt/libsigc++/include/sigc++-2.0/sigc
++/signal.h:8:0,
                 from /opt/libsigc++/include/sigc++-2.0/sigc++/sigc
++.h:80,
                 from Network/networksocket.h:20,
                 from main.cpp:5:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal_base.h: In constructor
‘sigc::internal::temp_slot_list::temp_slot_list(sigc::internal::temp_slot_list::slot_list&)’:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal_base.h:181:50: error:
value-initialization of reference type
‘sigc::internal::temp_slot_list::slot_list& {aka
std::list<sigc::slot_base>&}’
In file included from /opt/libsigc++/include/sigc++-2.0/sigc++/sigc
++.h:80:0,
                 from Network/networksocket.h:20,
                 from main.cpp:5:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: At global scope:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:613:44: error: ISO C++
forbids declaration of ‘result_type’ with no type [-fpermissive]
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:626:5: error: ‘static
int sigc::internal::signal_emit0<T_return,
T_accumulator>::result_type(sigc::internal::signal_impl*)’ conflicts
with a previous declaration
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:594:47: note: previous
declaration ‘typedef typename T_accumulator::result_type
sigc::internal::signal_emit0<T_return, T_accumulator>::result_type’
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: In static member
function ‘static int sigc::internal::signal_emit0<T_return,
T_accumulator>::result_type(sigc::internal::signal_impl*)’:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:624:48: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:624:54: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:625:48: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:625:54: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: In static member
function ‘static sigc::internal::signal_emit0<T_return,
T_accumulator>::result_type sigc::internal::signal_emit0<T_return,
T_accumulator>::emit_reverse(sigc::internal::signal_impl*)’:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:643:56: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:643:62: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:644:56: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:644:62: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: At global scope:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:668:44: error: ISO C++
forbids declaration of ‘result_type’ with no type [-fpermissive]
In file included from /opt/libsigc++/include/sigc++-2.0/sigc++/sigc
++.h:80:0,
                 from Network/networksocket.h:20,
                 from main.cpp:5:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:697:5: error: ‘static
int sigc::internal::signal_emit0<T_return,
sigc::nil>::result_type(sigc::internal::signal_impl*)’ conflicts with a
previous declaration
In file included from /opt/libsigc++/include/sigc++-2.0/sigc++/sigc
++.h:80:0,
                 from Network/networksocket.h:20,
                 from main.cpp:5:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:657:20: note: previous
declaration ‘typedef T_return sigc::internal::signal_emit0<T_return,
sigc::nil>::result_type’
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: In static member
function ‘static int sigc::internal::signal_emit0<T_return,
sigc::nil>::result_type(sigc::internal::signal_impl*)’:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:680:33: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:681:27: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:684:24: error:
expected primary-expression before ‘.’ token
In file included from /opt/libsigc++/include/sigc++-2.0/sigc++/sigc
++.h:80:0,
                 from Network/networksocket.h:20,
                 from main.cpp:5:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:688:31: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: In static member
function ‘static sigc::internal::signal_emit0<T_return,
sigc::nil>::result_type sigc::internal::signal_emit0<T_return,
sigc::nil>::emit_reverse(sigc::internal::signal_impl*)’:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:724:39: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:725:43: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:725:49: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:728:40: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:728:46: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:732:47: error:
expected primary-expression before ‘(’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:732:53: error:
expected primary-expression before ‘.’ token
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h: At global scope:
/opt/libsigc++/include/sigc++-2.0/sigc++/signal.h:762:38: error:
expected ‘)’ before ‘*’ token
main.cpp:150:1: error: expected ‘}’ at end of input
main.cpp:150:1: error: expected unqualified-id at end of input
main.cpp:150:1: error: expected ‘}’ at end of input
main.cpp:150:1: error: expected ‘}’ at end of input
make: *** [main.o] Error 1
//////////////////////////////////////////////////////////////////

Attachment: signature.asc
Description: This is a digitally signed message part



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