Boost installation inquiry
Hello Boost User Community,
I am a big fan of boost C++ having used it for a college class to do threading. I want to get back into it and I previously installed boost on a windows machine, now dealing with a Linux machine would like some help as I have run into difficulties with the installation process.
First off,
I would like to build threads and regex libraries. I have gotten the first example show below to work correctly:
#include
echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/root/bin :/root/bin/BoostC++1.51/bin/
~/boost/stage/lib/libboost_
g++ I- /root/boost/ /root/bin/repos/c-projects/c++/C++Projects/Boost/testLinkToBoostLib.cpp -o example \ libboost_chrono.a libboost_regex.a libboost_chrono.so libboost_regex.so libboost_chrono.so.1.51.0 libboost_regex.so.1.51.0 libboost_filesystem.a libboost_system.a libboost_filesystem.so libboost_system.so libboost_filesystem.so.1.51.0 libboost_system.so.1.51.0 libboost_program_options.a libboost_thread.a libboost_program_options.so libboost_thread.so libboost_program_options.so.1.51.0 libboost_thread.so.1.51.0 Finally this is my issue: When I try to compile the test regex code with boost, I am unable to find the correct library to include. I fear that because I have this issue, that my thread library is not built as well. Is there a way to check? Can you provide what worked for you to install boost on your linux machine. c++ -I path/to/boost_1_51_0 example.cpp -o example \ ~/boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a I am unable to find or even create this: libboost_regex-gcc34-mt-d-1_36.a If you have any advise or direction please let me know. Thank you! There was some talk about checking the configuration of the user-config.jam if there are linker or compile issues. But I do not think those could be the issues at the moment. Thank you in advance for looking at my issue! ~Jake
AMDG On 10/28/2012 06:18 PM, mega deth wrote:
<snip>
~/boost/stage/lib/libboost_
g++ I- /root/boost/ /root/bin/repos/c-projects/c++/C++Projects/Boost/testLinkToBoostLib.cpp -o example \ libboost_chrono.a libboost_regex.a libboost_chrono.so libboost_regex.so <snip>
Finally this is my issue: When I try to compile the test regex code with boost, I am unable to find the correct library to include. I fear that because I have this issue, that my thread library is not built as well. Is there a way to check? Can you provide what worked for you to install boost on your linux machine. c++ -I path/to/boost_1_51_0 example.cpp -o example \ ~/boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a
I am unable to find or even create this:
libboost_regex-gcc34-mt-d-1_36.a
If you have any advise or direction please let me know. Thank you! There was some talk about checking the configuration of the user-config.jam if there are linker or compile issues. But I do not think those could be the issues at the moment.
Use libboost_regex.a. If you want the mangled names you need to pass --layout=versioned to b2. e.g. b2 --layout=versioned --with-regex debug threading=multi link=static
Thank you in advance for looking at my issue!
In Christ, Steven Watanabe
participants (2)
-
mega deth
-
Steven Watanabe