Re: [Boost-bugs] [Boost C++ Libraries] #10038: filesystem library with -std=c++11 causes undefined reference to copy_file

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10038: filesystem library with -std=c++11 causes undefined reference to copy_file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-26 03:24:39


#10038: filesystem library with -std=c++11 causes undefined reference to copy_file
---------------------------+--------------------------------------------
  Reporter: jim.king@… | Owner: bemandawes
      Type: Bugs | Status: closed
 Milestone: Boost 1.57.0 | Component: filesystem
   Version: Boost 1.56.0 | Severity: Problem
Resolution: fixed | Keywords: filesystem copy_file undefined
---------------------------+--------------------------------------------

Comment (by anonymous):

 How to deal with this problem?

 I have exactly the same issue with Boost 1.54.0(using arm-gcc 4.8.3 under
 Android)

 How to write the Makefile via Android.mk?

 libboost_system, libboost_thread, libboost_filesystem and libboost_log are
 used.

 When I build the libboost_log, the issue occurs.

 The cxx_flags of filesystem is:

 -std=c++0x
 -Wextra
 -pedantic
 -Wno-long-long
 -ansi
 -fpermissive
 -fexceptions
 -Wno-variadic-macros
 -Wunused-function
 -DBOOST_SYSTEM_NO_DEPRECATED

 It successed

 and the boost_log is:

 -std=c++0x
 -fexceptions
 -fpermissive
 -Wmissing-field-initializers
 -ftemplate-depth-1024
 -fno-strict-aliasing
 -DBOOST_LOG_WITHOUT_EVENT_LOG
 -DBOOST_LOG_USE_NATIVE_SYSLOG
 -DBOOST_SPIRIT_USE_PHOENIX_V3

 boost/filesystem/operations.hpp:384: undefined reference to
 `boost::filesystem::detail::copy_file(boost::filesystem::path const&,
 boost::filesystem::path const&, boost::filesystem::copy_option,
 boost::system::error_code*)'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10038#comment:10>
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:20 UTC