Kdevelop or linker problem ???

Oliver Kowalke oliver.kowalke at t-online.de
Wed Sep 19 21:25:25 BST 2001


Hi,

I get this error:

g++ -DHAVE_CONFIG_H -I. -I. -I..     -O0 -g3 -Wall    -c main.cpp
/bin/sh ../libtool --mode=link g++  -O0 -g3 -Wall     -o libogx   main.o 
./ogx/generic/libgeneric.a ./ogx/misc/libmisc.a 
./ogx/multiplexing/libmultiplexing.a ./ogx/net/libnet.a 
./ogx/signal/libsignal.a ./ogx/ex/libex.a  -lpthread 
mkdir .libs
g++ -O0 -g3 -Wall -o libogx main.o  ./ogx/generic/libgeneric.a 
./ogx/misc/libmisc.a ./ogx/multiplexing/libmultiplexing.a ./ogx/net/libnet.a 
./ogx/signal/libsignal.a ./ogx/ex/libex.a -lpthread
./ogx/multiplexing/libmultiplexing.a(select_reactor.o): In function 
`simple_alloc<_Rb_tree_node<pair<handle const, demux_table::tuple> >, 
__default_alloc_template<true, 0> >::allocate(unsigned int)':
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x2f): 
undefined reference to `handle_set::handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x41): 
undefined reference to `handle_set::handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x53): 
undefined reference to `handle_set::handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x18d): 
undefined reference to `handle_set::~handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x1ad): 
undefined reference to `handle_set::~handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.text+0x1ca): 
undefined reference to `handle_set::~handle_set(void)'
./ogx/multiplexing/libmultiplexing.a(select_reactor.o): In function 
`select_reactor::remove_handler(event_handler *, event_handler::EVENTTYPE)':
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:117: undefined 
reference to `handle_set::clear(handle const &)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:124: undefined 
reference to `handle_set::clear(handle const &)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:131: undefined 
reference to `handle_set::clear(handle const &)'
./ogx/multiplexing/libmultiplexing.a(select_reactor.o): In function 
`select_reactor::remove_handler(handle const &, event_handler::EVENTTYPE)':
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:153: undefined 
reference to `handle_set::clear(handle const &)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:160: undefined 
reference to `handle_set::clear(handle const &)'
./ogx/multiplexing/libmultiplexing.a(select_reactor.o):/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:167: 
more undefined references to `handle_set::clear(handle const &)' follow
./ogx/multiplexing/libmultiplexing.a(select_reactor.o): In function 
`select_reactor::handle_events(timeval *)':
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:185: undefined 
reference to `handle_set::clear(void)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:186: undefined 
reference to `handle_set::clear(void)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:187: undefined 
reference to `handle_set::clear(void)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:193: undefined 
reference to `handle_set::get_os_handle_set(void) const'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:193: undefined 
reference to `handle_set::get_os_handle_set(void) const'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:193: undefined 
reference to `handle_set::get_os_handle_set(void) const'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:205: undefined 
reference to `handle_set::is_set(handle const &)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:208: undefined 
reference to `handle_set::is_set(handle const &)'
/opt/devel/libogx/libogx/ogx/multiplexing/select_reactor.cpp:211: undefined 
reference to `handle_set::is_set(handle const &)'
./ogx/multiplexing/libmultiplexing.a(select_reactor.o): In function 
`simple_alloc<_Rb_tree_node<pair<handle const, demux_table::tuple> >, 
__default_alloc_template<true, 0> >::allocate(unsigned int)':
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.gnu.linkonce.t._._14select_reactor+0x72): 
undefined reference to `handle_set::~handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.gnu.linkonce.t._._14select_reactor+0x86): 
undefined reference to `handle_set::~handle_set(void)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h(.gnu.linkonce.t._._14select_reactor+0x97): 
undefined reference to `handle_set::~handle_set(void)'
./ogx/multiplexing/libmultiplexing.a(demux_table_map.o): In function 
`demux_table_map::convert_to_handle_set(handle_set &)':
/opt/devel/libogx/libogx/oggmake[3]: Leaving directory 
`/opt/devel/libogx/libogx'
gmake[2]: Leaving directory `/opt/devel/libogx/libogx'
gmake[1]: Leaving directory `/opt/devel/libogx'
x/multiplexing/demux_table_map.cpp:88: undefined reference to 
`handle_set::clear(void)'
/opt/devel/libogx/libogx/ogx/multiplexing/demux_table_map.cpp:95: undefined 
reference to `handle_set::set(handle const &)'
collect2: ld returned 1 exit status
gmake[3]: *** [libogx] Error 1
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all-recursive-am] Error 2
*** failed ***

All functions like 'handle_set::clear(handle const &)' are defined in 
handle_set.cpp (handle_set.h is included in select_reactor.h). What is going 
wrong?

thnx,
Oliver

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list