Subject: [Boost-bugs] [Boost C++ Libraries] #6124: Problem with copy_file in 1.47
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-15 16:25:40
#6124: Problem with copy_file in 1.47
-----------------------------------------+----------------------------------
Reporter: morandidodo@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.47.0 | Severity: Problem
Keywords: filesystem copy_file linker |
-----------------------------------------+----------------------------------
Hi,
I'm having a strange behaviour with copy_file in boost 1.47.
I've got a file with a piece of code like this:
{{{
string filename, old_filename;
...
copy_file(old_filename, filename);
}}}
It compiles, but it doesn't link. The linker says that copy_file doesn't
exists:
{{{
/usr/local/include/boost/filesystem/v3/operations.hpp:303: undefined
reference to
`boost::filesystem3::detail::copy_file(boost::filesystem3::path const&,
boost::filesystem3::path const&, boost::filesystem3::copy_option,
boost::system::error_code*)'
}}}
I'm using other functions from the filesystem library, and if I don't
include the "-lboost_filesystem" flag I got other errors, so the library
is correctly found.
The boost library is not pre-compiled -- I built it by myself, but I
didn't specified any particular flag to the b2.
Thanks
-- dodomorandi
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6124> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC