Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-07-28 23:39:54

Steve Bobrowski wrote:

> Hi,
> I did some development with (1.31.0) on a Linux
> platform: no problems.
> However, when I try to compile on FreeBSD, I get the following errors:
> g++ -o myprog Unit1.o Unit2.o /usr/local/lib/
> /usr/local/lib/ undefined reference to
> 'pthread_mutex_unlock'
> /usr/local/lib/ undefined reference to
> 'pthread_mutex_destroy'
> /usr/local/lib/ undefined reference to
> 'pthread_mutex_lock'
> /usr/local/lib/ undefined reference to
> 'pthread_mutex_init'
> I've installed Boost on the FreeBSD platform using both the ports package
> available from and the source from Both yield the
> same results.
> Any ideas appreciated, as I am not that experienced with C++, Boost, and
> cross-platform deployment.


Seems that it's requiring thread support so...

Either add the "-pthread" option to your compiles (and links) manually,
or use a build system tool that adds it for you (like Boost.Build).

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/ - 102708583/icq

Boost list run by bdawes at, gregod at, cpdaniel at, john at