[pkg-boost-devel] Bug#424666: Bug#424666: libboost-filesystem-dev: Document header file location changes that make other software FTBFS
Domenico Andreoli
cavok at debian.org
Sat May 19 00:24:21 UTC 2007
On Fri, May 18, 2007 at 02:03:31PM -0600, Oleksandr Moskalenko wrote:
>
> /usr/bin/ld: cannot find -lboost_filesystem
> collect2: ld returned 1 exit status
>
> though /usr/share/doc/libboost-filesystem1.34.0/README.Debian does list
>
> filesystem -lboost_filesystem static shared
>
> and this call apparently worked with version 1.33
indeed that file is outdated, i will update it in the next upload.
> I also looked at
> http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ and
> tried compiling
>
> #include<iostream>
> #include<boost/filesystem/operations.hpp>
> namespace bfs=boost::filesystem;
> int main()
> {
> bfs::path p("second.cpp");
> if(bfs::exists(p))
> std::cout<<p.leaf()<<std::endl;
> }
>
> which game me the following:
>
> $g++ -Wall boosttest.cpp
the correct command line for single-thread is:
$ g++ -Wall boosttest.cpp -lboost_filesystem-st
while for multi-thread is (note the final -mt in place of -st):
$ g++ -Wall boosttest.cpp -lboost_filesystem-mt
> Do you still think that going from 1.33 to 1.34 hasn't introduced any bugs?
it is not a bug, it is a feature :) please have a look at bug #424038.
cheers,
domenico
-----[ Domenico Andreoli, aka cavok
--[ http://www.dandreoli.com/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
More information about the pkg-boost-devel
mailing list