I’m trying to port the latest libsigc++ … but it seems to be very hard
to do. The code compiles flawless with the 3.x gcc under Linux.
What’s the problem?
DEPDIR=.deps depmode=gcc /bin/sh …/depcomp
/bin/sh …/libtool --tag=CXX --mode=compile QCC -DHAVE_CONFIG_H -I…
-I… -g -O2 -c -o s
mkdir .libs
QCC -DHAVE_CONFIG_H -I… -I… -g -O2 -c signal.cc
-Wp,-MD,.deps/signal.TPlo -fPIC -DPIC -o
In file included from …/sigc++/signal.h:8,
from signal.cc:22:
…/sigc++/signal_base.h: In instantiation of
std::list<sigc::slot_base, std::allocator<sigc ..../sigc++/signal_base.h:195: instantiated from
std::list<sigc::slot_base, std::allocator<
…/sigc++/signal_base.h:195: instantiated from here
/usr/qnx630/target/qnx6/usr/include/cpp/list:74: error: typedef class std::allocator<sigc::slot_base> std::_List_val<sigc::slot_base, std::allocator<sigc::slot_base> >::_Alty' is protected ..../sigc++/signal_base.h:195: error: within this context /usr/qnx630/target/qnx6/usr/include/cpp/list:74: error:
typedef class
std::allocatorsigc::slot_base std::_List_val<sigc::slot_base,
std::allocatorsigc::slot_base >::_Alty’ is protected
…/sigc++/signal_base.h:195: error: within this context
/usr/qnx630/target/qnx6/usr/include/cpp/list:74: error: typedef class std::allocator<sigc::slot_base> std::_List_val<sigc::slot_base, std::allocator<sigc::slot_base> >::_Alty' is protected ..../sigc++/signal_base.h:195: error: within this context cc: /usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.1/cc1plus error 1 make[3]: *** [signal.lo] Error 1 make[3]: Leaving directory
/opt/libsigc+±2.0.16/sigc++’
Regards
–Armin