[sigc] Linking a file with .o files that use the libsig library
- From: bergern ensinfo univ-nantes fr
- To: libsigc++ list <libsigc-list gnome org>
- Subject: [sigc] Linking a file with .o files that use the libsig library
- Date: Tue, 19 Jul 2005 14:36:51 +0200
Hello
Here is the command line for compiling that is created by make in order to
compile a file that doesn't use signal objects in itself, but that is linked
with .o files that use signal objects :
-------------------------------------------------------------------------
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"elisa\"
-DVERSION=\"1.0.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DTHREAD_LOCAL_ALLOC=1 -DSILENT=1
-DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1
-DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1
-DHAVE_LIBDL=1 -DHAVE_MATHLIB_H=1 -DHAVE_GAOL_GAOL_H=1 -DELISA_DEBUG=0
-DELISA_PROFILE=0 -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_POW=1 -DHAVE_SQRT=1
-I. -I. -I.. -I../gc/include -I/home/autres/berger/stage2005/include/
-I/home/autres/berger/stage2005/include/sigc++
-I/home/autres/berger/stage2005/include -MT alphatest.o -MD -MP -MF
".deps/alphatest.Tpo" \
-c -o alphatest.o `test -f 'alphatest.cpp' || echo './'`alphatest.cpp; \
then mv ".deps/alphatest.Tpo" ".deps/alphatest.Po"; \
else rm -f ".deps/alphatest.Tpo"; exit 1; \
fi
-------------------------------------------------------------------------
Here is the error message I get :
-------------------------------------------------------------------------
In file included from /usr/include/c++/3.3.2/bits/stl_alloc.h:89,
from /usr/include/c++/3.3.2/list:68,
from /home/autres/berger/stage2005/include/sigc++/signal.h:7,
from /usr/include/pthread.h:24,
from
/usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
from /usr/include/c++/3.3.2/bits/fpos.h:44,
from /usr/include/c++/3.3.2/iosfwd:49,
from /usr/include/c++/3.3.2/ios:44,
from /usr/include/c++/3.3.2/ostream:45,
from /usr/include/c++/3.3.2/iostream:45,
from ../elisa/elisa_and_model.h:15,
from ../elisa/elisa.h:13,
from alphatest.cpp:12:
/usr/include/c++/3.3.2/bits/stl_threads.h:69: error: '__gthread_mutex_t' is
used as a type, but is not defined as a type.
Dans le fichier inclus à partir de /usr/include/c++/3.3.2/bits/stl_alloc.h:89,
à partir de /usr/include/c++/3.3.2/list:68,
à partir de /home/autres/berger/stage2005/include/sigc++/signal.h:7,
à partir de /usr/include/pthread.h:24,
à partir de
/usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
à partir de /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
à partir de /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
à partir de /usr/include/c++/3.3.2/bits/fpos.h:44,
à partir de /usr/include/c++/3.3.2/iosfwd:49,
à partir de /usr/include/c++/3.3.2/ios:44,
à partir de /usr/include/c++/3.3.2/ostream:45,
à partir de /usr/include/c++/3.3.2/iostream:45,
à partir de ../elisa/elisa_and_model.h:15,
à partir de ../elisa/elisa.h:13,
à partir de alphatest.cpp:12:
/usr/include/c++/3.3.2/bits/stl_threads.h:79:2: #error __GTHREAD_MUTEX_INIT or
__GTHREAD_MUTEX_INIT_FUNCTION should be defined by gthr.h abstraction layer,
report problem to libstdc++ gcc gnu org
/usr/include/c++/3.3.2/bits/stl_threads.h: Dans member function « void
std::_Refcount_Base::_M_incr() »:
/usr/include/c++/3.3.2/bits/stl_threads.h:86: error: `_M_ref_count_lock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h:86: error: (Each undeclared
identifier is reported only once for each function it appears in.)
/usr/include/c++/3.3.2/bits/stl_threads.h:86: error: `__gthread_mutex_lock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h:88: error: `__gthread_mutex_unlock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h: Dans member function « size_t
std::_Refcount_Base::_M_decr() »:
/usr/include/c++/3.3.2/bits/stl_threads.h:94: error: `__gthread_mutex_lock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h:96: error: `__gthread_mutex_unlock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h: At global scope:
/usr/include/c++/3.3.2/bits/stl_threads.h:164: error: '__gthread_mutex_t' is
used as a type, but is not defined as a type.
/usr/include/c++/3.3.2/bits/stl_threads.h: Dans member function « void
std::_STL_mutex_lock::_M_acquire_lock() »:
/usr/include/c++/3.3.2/bits/stl_threads.h:200: error: `_M_lock' undeclared
(first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h:200: error: `__gthread_mutex_lock'
undeclared (first use this function)
/usr/include/c++/3.3.2/bits/stl_threads.h: Dans member function « void
std::_STL_mutex_lock::_M_release_lock() »:
/usr/include/c++/3.3.2/bits/stl_threads.h:209: error: `__gthread_mutex_unlock'
undeclared (first use this function)
In file included from /usr/include/c++/3.3.2/list:68,
from /home/autres/berger/stage2005/include/sigc++/signal.h:7,
from /usr/include/pthread.h:24,
from
/usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:37,
from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
from /usr/include/c++/3.3.2/bits/fpos.h:44,
from /usr/include/c++/3.3.2/iosfwd:49,
from /usr/include/c++/3.3.2/ios:44,
from /usr/include/c++/3.3.2/ostream:45,
from /usr/include/c++/3.3.2/iostream:45,
from ../elisa/elisa_and_model.h:15,
from ../elisa/elisa.h:13,
from alphatest.cpp:12:
/usr/include/c++/3.3.2/bits/stl_alloc.h: At global scope:
/usr/include/c++/3.3.2/bits/stl_alloc.h:602: error: erreur de syntaxe before `;
' token
/usr/include/c++/3.3.2/bits/stl_alloc.h:602: embrouillé par les erreurs
précédentes, abandon
make[2]: *** [alphatest.o] Erreur 1
make[2]: Quitte le répertoire `/home/autres/berger/stage2005/elisa-1.0.3/check'
make[1]: *** [check-am] Erreur 2
make[1]: Quitte le répertoire `/home/autres/berger/stage2005/elisa-1.0.3/check'
make: *** [check-recursive] Erreur 1
-------------------------------------------------------------------------
Has anyone an idea ? This file compiled correctly before I had signal objects in
the .o files that it is linked with.
>From France,
BERGER Nicolas.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]