|
Boost Users : |
Subject: Re: [Boost-users] Boost static linking
From: Alex Farber (alexf3062_at_[hidden])
Date: 2010-02-27 13:08:31
Thank you. This is my command line:
g++ -o"MyProgram" ./main.o -l:libboost_thread.a
The result is huge number of messages like:
undefined reference to `pthread_key_create'
The same result as I got with this:
g++ -static -o"MyProgram" ./main.o -lboost_thread
Some problems with static library libboost_thread.a?
On Sat, Feb 27, 2010 at 6:26 PM, David Kaplan <davkaplan_at_[hidden]> wrote:
> On 27 February 2010 08:34, Alex Farber <alexf3062_at_[hidden]> wrote:
> > Tried this, got error message:
> > cannot find -llibboost_thread.a
> > (added libboost_thread.a to the likker libraries list in the Eclipse CDT
> > project).
>
> You need to add ":libboost_thread.a" - with the colon...
> Eclipse will call the linked with -l:libboost_thread.a
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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