[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] boost link error
From: |
Benoît Dejean |
Subject: |
[Monotone-devel] boost link error |
Date: |
Tue, 22 May 2007 18:40:33 +0200 |
Hello everyone,
On my Debian sid, the auto* fail to link mtn :
g++ -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS
-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -g -O2 -Wall -W -Wno-unused
-fno-strict-aliasing -o mtn mtn-sanity.o mtn-simplestring_xform.o
[...]
mtn-schema.o lib3rdparty.a -lboost_regex-mt -lboost_filesystem-mt
libplatform.a -lz
mtn-sanity.o: In function `unit_test_log_t':
/usr/include/boost/test/unit_test_log.hpp:126: undefined reference to
`vtable for boost::unit_test::unit_test_log_t'
/usr/include/boost/test/unit_test_log.hpp:126: undefined reference to
`vtable for boost::unit_test::unit_test_log_t'
/usr/include/boost/test/unit_test_log.hpp:126: undefined reference to
`vtable for boost::unit_test::unit_test_log_t'
/usr/include/boost/test/unit_test_log.hpp:126: undefined reference to
`vtable for boost::unit_test::unit_test_log_t'
mtn-simplestring_xform.o: In function `unit_test_log_t':
/usr/include/boost/test/unit_test_log.hpp:126: undefined reference to
`vtable for boost::unit_test::unit_test_log_t'
mtn-simplestring_xform.o:/usr/include/boost/test/unit_test_log.hpp:126:
more undefined references to `vtable for
boost::unit_test::unit_test_log_t' follow
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [mtn] Erreur 1
make[2]: quittant le répertoire « /home/benoit/net.venge.monotone »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/benoit/net.venge.monotone »
make: *** [all] Erreur 2
So it's missing boost_unit_test_framework. Moreover it's linking with
the MT version of boost where the st are available. A manual link like
the following works fine :
[18:30:06][pts/6][~/net.venge.monotone][#16] ? 2
address@hidden >>> g++ -DNDEBUG -DBOOST_DISABLE_THREADS
-DBOOST_SP_DISABLE_THREADS -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -g
-O2 -Wall -W -Wno-unused -fno-strict-aliasing -o mtn mtn-sanity.o
[...]
unix/mtn-main.o mtn-std_hooks.o mtn-schema.o lib3rdparty.a
-lboost_regex-st -lboost_filesystem-st -lboost_unit_test_framework-st
libplatform.a -lz
Is that a Debian issue ?
Thanks.
--
Benoît Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
signature.asc
Description: Ceci est une partie de message numériquement signée
- [Monotone-devel] boost link error,
Benoît Dejean <=