Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users] Compile and Install boost::thread from souce code on Ubuntu
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-17 09:36:11


AMDG

Boost lzw wrote:
> <snip>
> but failed to compile thread.cpp program with
> robert_at_ubuntu:~/boost$ g++ -I /home/robert/src/boost_1_43_0 thread.cpp -o
> thread
>

-L/usr/local/lib -lboost_thread

> for the following thread.cpp
> ===================
> <snip>
> ===================
>
> The first few complaints I got are:
> ----------------------------------------------
> /tmp/ccwgSZ3d.o: In function `main':
> thread.cpp:(.text+0x6e): undefined reference to `boost::thread::join()'
> thread.cpp:(.text+0x7f): undefined reference to `boost::thread::~thread()'
> thread.cpp:(.text+0xa0): undefined reference to `boost::thread::~thread()'
> /tmp/ccwgSZ3d.o: In function
> `boost::detail::thread_data_base::thread_data_base()':
> How can I compile boost::thread separately for it to work? Thanks a lot.
>

It looks like you already did

> (4)
> robert_at_ubuntu:~/src/boost_1_43_0$ sudo ./bootstrap.sh --prefix=/usr/local
> --show-libraries --with-libraries=all --exec-prefix=/usr/local/bin/
>
> (5)
> ./bjam install
>

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net