This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: boost library, hardtolink&compile, plz help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]