|
Boost Users : |
Subject: Re: [Boost-users] error while compiling application that uses a static lib that uses boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-22 21:30:20
AMDG
ChristinaDRS wrote:
> now I try to build a second application that simply uses the libtest.a like
> this:
>
> $ g++ -I ~/boost_1_38_0/ -I. main.cpp -omain -L/usr/local/lib/ -L. -ltest
> -lboost_thread-gcc41-mt-1_38
>
> <snip>
> /usr/include/boost/thread/detail/lock.hpp:33: undefined reference to
>
> Any idea why I am getting these undefined references?
>
Somehow, you're getting headers from the wrong version of Boost.
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