Boost logo

Boost Users :

From: Bobby Ward (bobbyrward_at_[hidden])
Date: 2007-05-30 13:46:57


Fortunately/Unfortunately you have to specify the library as

-lboost_regex-mgw41-1_34

or whatever variation due to boost's ABI compatibility requirements.

On 5/30/07, Scott Meyers <usenet_at_[hidden]> wrote:
>
> David Daeschler wrote:
> > After following this thread lower down, I think that you're confusing -l
> > (lower case l) and -L (capital L). Lower case -l specifies the
> > individual library you are linking to (ex boost_filesystem). Capital -L
> > specifies a directory or directories (you can use -L and -l as many
> > times as you have to) where the linker should look for the libraries
> > specified by the lower case -l's
>
> No, this fails, too:
>
> D:\Temp>g++ -Wall -O3 -ID:\C++\Boost\Current -o boostbuildtest.exe
> boostbuildtest.cpp -Lc:\boost_current\lib -lboost_regex -lboost_f
> ilesystem
>
> d:\apps\msys\1.0\mingw\bin\..\lib\gcc\mingw32\4.1.1\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lboost_regex
> collect2: ld returned 1 exit status
>
> I've also tried variations making sure that the case of the paths in the
> command
> line matches what Windows shows (because, in the past, I've had trouble
> with Gnu
> tools treating paths case-sensitively on Windows). Still no luck.
>
> Other suggestions?
>
> Scott
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Bobby R. Ward
------------------------------
bobbyrward_at_[hidden]
http://www.bobbyrward.com
http://combustion.sourceforge.net


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