Fortunately/Unfortunately you have to specify the library as
-lboost_regex-mgw41-1_34
or whatever variation due to boost's ABI compatibility requirements.
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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users