This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: boost library, hardtolink&compile, plz help
- From: Jeffrey Walton <noloader at gmail dot com>
- To: eric lin <ericlin at fsshl dot zzn dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 22 May 2011 05:43:54 -0400
- Subject: Re: Re: boost library, hardtolink&compile, plz help
- References: <A53CA146A59B26C468567B3732105071@ericlin.fsshl.zzn.com>
- Reply-to: noloader at gmail dot com
On Sun, May 22, 2011 at 5:34 AM, eric lin <ericlin@fsshl.zzn.com> wrote:
> Dear G++ programers:
>
> I tried your suggestion
> ----
> eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp -lboost_thread-mt
> /usr/bin/ld: cannot find -lboost_thread-mt
> collect2: ld returned 1 exit status
The library [is probably] there, the linker cannot find it. I believe
you need to specify the library location with '-L'.
If the library is there - and on path - you need to verify the name is
boost_thread-mt.
> [SNIP]
Jeff