Linking Boost in Code::Blocks
Okay, I've been trying to figure this out for a couple of weeks now... I'm using Boost 1.37 on Ubuntu Hardy Heron with Code::Blocks 8.02, Programming in C++.... Now, I'm rather new to Ubuntu, and just as much so programming in Ubuntu... Well, I've been working on this project, and I've been cross-developing it on Windows and Linux, but I've hit a hiccup once i've started using Boost... All works great on Windows using MinGW and Code::Blocks, however I cannot get the same code to run in Linux. The best I can think of is that there's a problem with the linking.... I've added the include path, and the lib path to the search directories, and I've added the libboost_serialization-gcc42-mt-1_37.a to the list of libraries but for some reason it still doesn't work... I get the following error when I try to compile: obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ||=== Build finished: 6 errors, 0 warnings ===| I've looked everywhere I can think of and chatted on a few IRC's but I haven't been able to get anywhere with this... Because of this I've had to develop only on Windows (Yuck!) and not do any testing in Linux... I take comfort in knowing though that once I get Boost operational, my code will work in Linux too... ( probably better since Linux is so nice to me! ) I'd appreciate any help tat can be offered! -- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p21867302.... Sent from the Boost - Users mailing list archive at Nabble.com.
Looks like you need to set up the path to the libraries of boost still. And have you yet looked at offical C::B Forum on the web? I don't think this is a boost issue. The linker/compiler is missing a library, so far at least, what your errormessages show. regards, Jens Weller -------- Original-Nachricht --------
Datum: Sun, 8 Feb 2009 07:31:30 -0800 (PST) Von: mothdragon
An: boost-users@lists.boost.org Betreff: [Boost-users] Linking Boost in Code::Blocks
Okay, I've been trying to figure this out for a couple of weeks now... I'm using Boost 1.37 on Ubuntu Hardy Heron with Code::Blocks 8.02, Programming in C++.... Now, I'm rather new to Ubuntu, and just as much so programming in Ubuntu... Well, I've been working on this project, and I've been cross-developing it on Windows and Linux, but I've hit a hiccup once i've started using Boost... All works great on Windows using MinGW and Code::Blocks, however I cannot get the same code to run in Linux. The best I can think of is that there's a problem with the linking.... I've added the include path, and the lib path to the search directories, and I've added the libboost_serialization-gcc42-mt-1_37.a to the list of libraries but for some reason it still doesn't work...
I get the following error when I try to compile:
obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ||=== Build finished: 6 errors, 0 warnings ===|
I've looked everywhere I can think of and chatted on a few IRC's but I haven't been able to get anywhere with this... Because of this I've had to develop only on Windows (Yuck!) and not do any testing in Linux... I take comfort in knowing though that once I get Boost operational, my code will work in Linux too... ( probably better since Linux is so nice to me! )
I'd appreciate any help tat can be offered! -- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p21867302.... Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
Whenever I encountered library linking problems under 8.04 + CB, I was often missing a small detail such as the ordering of the libraries in the linker settings. Not much in the way of help, sorry. mothdragon wrote:
Okay, I've been trying to figure this out for a couple of weeks now... I'm using Boost 1.37 on Ubuntu Hardy Heron with Code::Blocks 8.02, Programming in C++.... Now, I'm rather new to Ubuntu, and just as much so programming in Ubuntu... Well, I've been working on this project, and I've been cross-developing it on Windows and Linux, but I've hit a hiccup once i've started using Boost... All works great on Windows using MinGW and Code::Blocks, however I cannot get the same code to run in Linux. The best I can think of is that there's a problem with the linking.... I've added the include path, and the lib path to the search directories, and I've added the libboost_serialization-gcc42-mt-1_37.a to the list of libraries but for some reason it still doesn't work...
I get the following error when I try to compile:
obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ||=== Build finished: 6 errors, 0 warnings ===|
I've looked everywhere I can think of and chatted on a few IRC's but I haven't been able to get anywhere with this... Because of this I've had to develop only on Windows (Yuck!) and not do any testing in Linux... I take comfort in knowing though that once I get Boost operational, my code will work in Linux too... ( probably better since Linux is so nice to me! )
I'd appreciate any help tat can be offered!
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version... g-h-d wrote:
Whenever I encountered library linking problems under 8.04 + CB, I was often missing a small detail such as the ordering of the libraries in the linker settings. Not much in the way of help, sorry.
mothdragon wrote:
Okay, I've been trying to figure this out for a couple of weeks now... I'm using Boost 1.37 on Ubuntu Hardy Heron with Code::Blocks 8.02, Programming in C++.... Now, I'm rather new to Ubuntu, and just as much so programming in Ubuntu... Well, I've been working on this project, and I've been cross-developing it on Windows and Linux, but I've hit a hiccup once i've started using Boost... All works great on Windows using MinGW and Code::Blocks, however I cannot get the same code to run in Linux. The best I can think of is that there's a problem with the linking.... I've added the include path, and the lib path to the search directories, and I've added the libboost_serialization-gcc42-mt-1_37.a to the list of libraries but for some reason it still doesn't work...
I get the following error when I try to compile:
obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ||=== Build finished: 6 errors, 0 warnings ===|
I've looked everywhere I can think of and chatted on a few IRC's but I haven't been able to get anywhere with this... Because of this I've had to develop only on Windows (Yuck!) and not do any testing in Linux... I take comfort in knowing though that once I get Boost operational, my code will work in Linux too... ( probably better since Linux is so nice to me! )
I'd appreciate any help tat can be offered!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p21968064.... Sent from the Boost - Users mailing list archive at Nabble.com.
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version...
I guess that's the point, you should link libboost_system-xxxxxxxx also. Patuti
Oh wow! Really? I didn't see that anywhere... Thanks, I'll give that a try! Patuti wrote:
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version...
I guess that's the point, you should link libboost_system-xxxxxxxx also.
Patuti
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p21989776.... Sent from the Boost - Users mailing list archive at Nabble.com.
AMDG mothdragon wrote:
Oh wow! Really? I didn't see that anywhere... Thanks, I'll give that a try!
Patuti wrote:
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version...
I guess that's the point, you should link libboost_system-xxxxxxxx also.
It won't help. The functions in question should come from libboost_serialization*. The real problem is a boost version mismatch. It appears that the file obj/Debug/Griffin RPG V2.o was compiled against boost <= 1.35. Recompile it and any other old files and you should be good. In Christ, Steven Watanabe
Well thank you so much for pointing out that I was somehow using the wrong boost version! I have eradicated that version from my system and I've updated the included libraries and paths within Code::Blocks so that is no longer the problem however i am still getting the same type of errors... obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| /usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined reference to `boost::serialization::extended_type_info::self_register()'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ]+0x8)||undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'| ||=== Build finished: 6 errors, 0 warnings ===| ... I'm really tired of looking at this... It all looks like a big blob to me now cuz it never seems to change... I can't be the only one out there with this problem... can I? Steven Watanabe-4 wrote:
AMDG
mothdragon wrote:
Oh wow! Really? I didn't see that anywhere... Thanks, I'll give that a try!
Patuti wrote:
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version...
I guess that's the point, you should link libboost_system-xxxxxxxx also.
It won't help. The functions in question should come from libboost_serialization*. The real problem is a boost version mismatch. It appears that the file obj/Debug/Griffin RPG V2.o was compiled against boost <= 1.35. Recompile it and any other old files and you should be good.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p22114564.... Sent from the Boost - Users mailing list archive at Nabble.com.
AMDG mothdragon wrote:
Well thank you so much for pointing out that I was somehow using the wrong boost version! I have eradicated that version from my system and I've updated the included libraries and paths within Code::Blocks so that is no longer the problem however i am still getting the same type of errors...
undefined reference to `boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info const&) const'|
... I'm really tired of looking at this... It all looks like a big blob to me now cuz it never seems to change... I can't be the only one out there with this problem... can I?
Somehow, you are still using an old version of Boost. In 1.36 less_than was renamed to is_less_than. Are you sure that you actually recompiled the object file(s) in question? I don't know whether this is a problem with Code::Blocks, but sometimes changing include paths doesn't force files to be rebuilt.
It won't help. The functions in question should come from libboost_serialization*. The real problem is a boost version mismatch. It appears that the file obj/Debug/Griffin RPG V2.o was compiled against boost <= 1.35. Recompile it and any other old files and you should be good.
In Christ, Steven Watanabe
Okay... So I listened to what you all had to say, and I got to thinking that maybe I did something wrong with the original installation/compilation So i decided to do it again. I downloaded boost_1_37_0.tar.bz2 again. I put the d/l in my /Documents/Programming/C++ directory. Then I did the following... $ tar -jxf boost_1_37_0.tar.bz2 $ cd boost_1_37_0 $ ./configure --prefix=/Documents/Programming/C++/boost_1_37_0 $ make install I'm only able to capture this much of the build process... libs/python/src/object/function.cpp:665: warning: deprecated conversion from string constant to ‘char*’ libs/python/src/object/function.cpp:665: warning: deprecated conversion from string constant to ‘char*’ gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/inheritance.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/life_support.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/pickle_support.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/errors.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/module.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/builtin_converters.o ...on 600th target... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/arg_to_python_base.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/iterator.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/stl_iterator.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/object_protocol.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/object_operators.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/wrapper.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/import.o gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/exec.o libs/python/src/exec.cpp: In function ‘boost::python::api::object boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object)’: libs/python/src/exec.cpp:42: warning: deprecated conversion from string constant to ‘char*’ gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/function_doc_signature.o gcc.archive bin.v2/libs/python/build/gcc-4.2.4/release/link-static/threading-multi/libboost_python-gcc42-mt-1_37.a ...skipped
libboost_python-gcc42-mt-1_37.a for lack of /Documents/Programming/C++/boost_1_37_0/lib... MkDir1-quick-fix-for-unix bin.v2/libs/regex/build/gcc-4.2.4/release/link-static MkDir1-quick-fix-for-unix bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/c_regex_traits.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/cpp_regex_traits.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/cregex.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/fileiter.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/icu.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/instances.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/posix_api.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/regex.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/regex_debug.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/regex_raw_buffer.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/regex_traits_defaults.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/static_mutex.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/w32_regex_traits.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/wc_regex_traits.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/wide_posix_api.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/winstances.o gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/usinstances.o gcc.archive bin.v2/libs/regex/build/gcc-4.2.4/release/link-static/threading-multi/libboost_regex-gcc42-mt-1_37.a ...skipped
libboost_regex-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
MkDir1-quick-fix-for-unix
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static
MkDir1-quick-fix-for-unix
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_archive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_iarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_iserializer.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_oarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_oserializer.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_pointer_iserializer.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_pointer_oserializer.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_serializer_map.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_text_iprimitive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_text_oprimitive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_xml_archive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/binary_iarchive.o
./boost/archive/impl/basic_binary_iprimitive.ipp: In destructor
‘boost::archive::basic_binary_iprimitive libboost_serialization-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_text_wiprimitive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/basic_text_woprimitive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/text_wiarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/text_woarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/utf8_codecvt_facet.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/xml_wgrammar.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/xml_wiarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/xml_woarchive.o
gcc.compile.c++
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/codecvt_null.o
gcc.archive
bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/libboost_wserialization-gcc42-mt-1_37.a
...skipped
libboost_wserialization-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
MkDir1-quick-fix-for-unix
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static
MkDir1-quick-fix-for-unix
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi
gcc.compile.c++
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/trackable.o
gcc.compile.c++
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/connection.o
gcc.compile.c++
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/named_slot_map.o
gcc.compile.c++
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/signal_base.o
gcc.compile.c++
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/slot.o
gcc.archive
bin.v2/libs/signals/build/gcc-4.2.4/release/link-static/threading-multi/libboost_signals-gcc42-mt-1_37.a
...skipped
libboost_signals-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
gcc.compile.c++
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/cpp_main.o
gcc.archive
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/libboost_prg_exec_monitor-gcc42-mt-1_37.a
...skipped
libboost_prg_exec_monitor-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
gcc.compile.c++
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/exception_safety.o
In file included from libs/test/src/exception_safety.cpp:16:
./boost/test/floating_point_comparison.hpp:224: warning:
‘boost::test_tools::<unnamed>::check_is_close’ defined but not used
./boost/test/floating_point_comparison.hpp:246: warning:
‘boost::test_tools::<unnamed>::check_is_small’ defined but not used
gcc.compile.c++
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/interaction_based.o
gcc.compile.c++
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/logged_expectations.o
In file included from libs/test/src/logged_expectations.cpp:16:
./boost/test/floating_point_comparison.hpp:224: warning:
‘boost::test_tools::<unnamed>::check_is_close’ defined but not used
./boost/test/floating_point_comparison.hpp:246: warning:
‘boost::test_tools::<unnamed>::check_is_small’ defined but not used
gcc.archive
bin.v2/libs/test/build/gcc-4.2.4/release/link-static/threading-multi/libboost_unit_test_framework-gcc42-mt-1_37.a
...skipped
libboost_unit_test_framework-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
MkDir1-quick-fix-for-unix
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static
MkDir1-quick-fix-for-unix
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static/threading-multi
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static/threading-multi/thread.o
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static/threading-multi/exceptions.o
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static/threading-multi/once.o
gcc.archive
bin.v2/libs/thread/build/gcc-4.2.4/release/link-static/threading-multi/libboost_thread-gcc42-mt-1_37.a
...skipped
libboost_thread-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
MkDir1-quick-fix-for-unix
bin.v2/libs/wave/build/gcc-4.2.4/release/link-static
MkDir1-quick-fix-for-unix
bin.v2/libs/wave/build/gcc-4.2.4/release/link-static/threading-multi
gcc.compile.c++
bin.v2/libs/wave/build/gcc-4.2.4/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o
gcc.compile.c++
bin.v2/libs/wave/build/gcc-4.2.4/release/link-static/threading-multi/instantiate_cpp_grammar.o
./boost/spirit/home/support/iterators/multi_pass.hpp: In copy constructor
‘boost::spirit::multi_pass libboost_wave-gcc42-mt-1_37.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_date_time-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_system-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_filesystem-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_graph-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_iostreams-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_tr1-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_tr1f-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_tr1l-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_c99-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_c99f-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_math_c99l-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_program_options-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_python-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_regex-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_serialization-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_wserialization-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_signals-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_prg_exec_monitor-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_unit_test_framework-gcc42-mt.a
for lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_thread-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...skipped
libboost_wave-gcc42-mt.a for
lack of /Documents/Programming/C++/boost_1_37_0/lib...
...failed updating 5 targets...
...skipped 7320 targets...
...updated 707 targets...
Not all Boost libraries built properly.
computer@mothdragon-desktop:~/Documents/Programming/C++/boost_1_37_0$
I'm thinking that my problem lies in the ...skipped 7320 targets part... but
I don't know... I don't know why it skipped them either... I am so not used
to manual compilation!
Anyway, I decided to try linking in Code::Blocks again. I needed to change
my paths because I built in a different directory this time. So in Compiler
and debugger settings-->Linker settings-->Link libraries I put in:
/home/computer/Documents/Programming/C++/boost_1_37_0/bin.v2/libs/serialization/build/gcc-4.2.4/release/link-static/threading-multi/libboost_serialization-gcc42-mt-1_37.a
In Compiler and debugger settings-->Search directories-->Compiler I put in:
/home/computer/Documents/Programming/C++/boost_1_37_0/boost
/home/computer/Documents/Programming/C++/boost_1_37_0/bin.v2/libs
In Compiler and debugger settings-->Search directories-->Linker I put in:
/home/computer/Documents/Programming/C++/boost_1_37_0/bin.v2/libs
Ultimately this resulted in the following errors at compile time of my
project:
obj/Debug/Griffin RPG V2.o||In function `extended_type_info_typeid_1':|
/usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined
reference to `boost::serialization::extended_type_info::self_register()'|
/usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined
reference to `boost::serialization::extended_type_info::self_register()'|
/usr/include/boost/serialization/extended_type_info_typeid.hpp|77|undefined
reference to `boost::serialization::extended_type_info::self_register()'|
]+0x8)||undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info
const&) const'|
]+0x8)||undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info
const&) const'|
]+0x8)||undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info
const&) const'|
||=== Build finished: 6 errors, 0 warnings ===|
Sorry for the long post, I'm trying to be thorough... I'm really tired of
this problem... Anything I can do to get it fixed :) Thanks!
--
View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p22238566....
Sent from the Boost - Users mailing list archive at Nabble.com.
AMDG mothdragon wrote:
Okay... So I listened to what you all had to say, and I got to thinking that maybe I did something wrong with the original installation/compilation So i decided to do it again. I downloaded boost_1_37_0.tar.bz2 again. I put the d/l in my /Documents/Programming/C++ directory. Then I did the following...
$ tar -jxf boost_1_37_0.tar.bz2 $ cd boost_1_37_0 $ ./configure --prefix=/Documents/Programming/C++/boost_1_37_0 $ make install
I'm only able to capture this much of the build process...
<snip>
I'm thinking that my problem lies in the ...skipped 7320 targets part... but I don't know... I don't know why it skipped them either... I am so not used to manual compilation!
This is a problem, but I think that it's a different problem. The output is likely to be a bit long for this list. Redirect the output to a file and send it to me in a private email. (Make sure you get both the standard output and the standard error.)
Ultimately this resulted in the following errors at compile time of my project:
obj/Debug/Griffin RPG V2.o undefined reference to `boost::serialization::extended_type_info::self_register()
What I said before still holds. This file was not compiled against 1.37. Let me put it bluntly. Have you rebuilt obj/Debug/Griffin RPG V2.o? The second thing that is wrong is that you don't seem to be linking to the serialization library. Otherwise I would expect an error like ld: cannot find -lboost_serialization-gcc34-mt-gd-1_37 In Christ, Steven Watanabe
Grrr.... So I tried adding libboost-system-xxxxx and it didn't work... I tried to change the order the lib's were included so that system was before serialization and the other way around, but it still didn't work.... This problem is really frustrating me... I was told a while ago that for saving my games files boost's serialization was the best way to go.... but I really want this to be a cross-platform app... I'm really very dissapointed that this isn't working... I don't want to throw in the towel on this, but I'm really beginning to think of dropping my Linux version ... GRR! Patuti wrote:
Thanks g-h-d. Unfortunately This is the only library I'm including (That I'm aware of... ) so it can't be the order of the libraries... could it be the order of the includes? I can't imagine that, as the includes work fine on the Windows version...
I guess that's the point, you should link libboost_system-xxxxxxxx also.
Patuti
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/Linking-Boost-in-Code%3A%3ABlocks-tp21867302p21989838.... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (5)
-
er
-
Everton Patitucci
-
Jens Weller
-
mothdragon
-
Steven Watanabe