Boost C++ Libraries: Ticket #7778: bcp not compiling https://svn.boost.org/trac10/ticket/7778 <p> bcp fails to compile. Using <code>bjam</code> with <code>mingw-4.7.2</code> on Windows XP SP3. I successfully compiled other libs (<code>regex</code>, <code>signals</code>, <code>test</code>). </p> <p> In case somebody else runs across this issue, the <code>1.51</code> <code>bcp</code> binary is available in the official pre-compiled tools zip: <a class="ext-link" href="http://netcologne.dl.sourceforge.net/project/boost/boost-binaries/1.51.0/boost_1_51_tools.zip"><span class="icon">​</span>http://netcologne.dl.sourceforge.net/project/boost/boost-binaries/1.51.0/boost_1_51_tools.zip</a>. </p> <pre class="wiki">Performing configuration checks - has_icu builds : no ...patience... ...found 989 targets... ...updating 4 targets... gcc.compile.c++ ..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\copy_path.o copy_path.cpp: In member function 'void bcp_implementation::copy_path(const boost::filesystem::path&amp;)': copy_path.cpp:66:50: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::basic_ifstream(const value_type*)' copy_path.cpp:66:50: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: candidate expects 0 arguments, 1 provided copy_path.cpp:81:87: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, std::_Ios_Openmode)' copy_path.cpp:81:87: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:83:63: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, const openmode&amp;)' copy_path.cpp:83:63: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:92:50: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::basic_ifstream(const value_type*)' copy_path.cpp:92:50: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: candidate expects 0 arguments, 1 provided copy_path.cpp:114:87: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, std::_Ios_Openmode)' copy_path.cpp:114:87: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:116:63: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, const openmode&amp;)' copy_path.cpp:116:63: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:130:50: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::basic_ifstream(const value_type*)' copy_path.cpp:130:50: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: candidate expects 0 arguments, 1 provided copy_path.cpp:209:87: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, std::_Ios_Openmode)' copy_path.cpp:209:87: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:211:63: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::open(const value_type*, const openmode&amp;)' copy_path.cpp:211:63: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:702:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: void std::basic_ofstream&lt;_CharT, _Traits&gt;::open(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:723:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' copy_path.cpp:218:50: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::basic_ifstream(const value_type*)' copy_path.cpp:218:50: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: candidate expects 0 arguments, 1 provided copy_path.cpp:222:93: error: no matching function for call to 'std::basic_ofstream&lt;char&gt;::basic_ofstream(const value_type*, std::_Ios_Openmode)' copy_path.cpp:222:93: note: candidates are: In file included from ..\../boost/filesystem/operations.hpp:45:0, from copy_path.cpp:15: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:647:7: note: std::basic_ofstream&lt;_CharT, _Traits&gt;::basic_ofstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:647:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:629:7: note: std::basic_ofstream&lt;_CharT, _Traits&gt;::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:629:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:614:7: note: std::basic_ofstream&lt;_CharT, _Traits&gt;::basic_ofstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:614:7: note: candidate expects 0 arguments, 2 provided In file included from ..\../boost/filesystem/path_traits.hpp:23:0, from ..\../boost/filesystem/path.hpp:25, from bcp_imp.hpp:16, from copy_path.cpp:13: ..\../boost/system/error_code.hpp: At global scope: ..\../boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable] ..\../boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable] ..\../boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable] "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1 -DNDEBUG -I"..\.." -c -o "..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\copy_path.o" "copy_path.cpp" ...failed gcc.compile.c++ ..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\copy_path.o... gcc.compile.c++ ..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\fileview.o fileview.cpp: In member function 'void fileview::open(const boost::filesystem::path&amp;)': fileview.cpp:60:30: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::basic_ifstream(const value_type*)' fileview.cpp:60:30: note: candidates are: In file included from fileview.cpp:15:0: c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const string&amp;, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::string = std::basic_string&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:476:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const string&amp; {aka const std::basic_string&lt;char&gt;&amp;}' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; std::ios_base::openmode = std::_Ios_Openmode] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:460:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: std::basic_ifstream&lt;_CharT, _Traits&gt;::basic_ifstream() [with _CharT = char; _Traits = std::char_traits&lt;char&gt;] c:\pdev\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.2/../../../../include/c++/4.7.2/fstream:446:7: note: candidate expects 0 arguments, 1 provided In file included from ..\../boost/filesystem/path_traits.hpp:23:0, from ..\../boost/filesystem/path.hpp:25, from fileview.hpp:17, from fileview.cpp:11: ..\../boost/system/error_code.hpp: At global scope: ..\../boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable] ..\../boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable] ..\../boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable] "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1 -DNDEBUG -I"..\.." -c -o "..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\fileview.o" "fileview.cpp" ...failed gcc.compile.c++ ..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static\fileview.o... ...skipped &lt;p..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static&gt;bcp.exe for lack of &lt;p..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static&gt;copy_path.o... ...skipped &lt;p..\..\dist\bin&gt;bcp.exe for lack of &lt;p..\..\bin.v2\tools\bcp\gcc-mingw-4.7.2\release\link-static&gt;bcp.exe... ...failed updating 2 targets... ...skipped 2 targets... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7778 Trac 1.4.3 John Maddock Mon, 10 Dec 2012 10:39:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7778#comment:1 https://svn.boost.org/trac10/ticket/7778#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81815" title="Fix up iostream operations to match changed boost.filesystem. Fixes ...">[81815]</a>) Fix up iostream operations to match changed boost.filesystem. Fixes GCC compiles. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7778" title="#7778: Bugs: bcp not compiling (closed: fixed)">#7778</a>. </p> Ticket anonymous Mon, 10 Dec 2012 10:41:41 GMT <link>https://svn.boost.org/trac10/ticket/7778#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7778#comment:2</guid> <description> <p> Fixes are in the patch above, in the mean time it should build with VC++ if you have access to that. </p> </description> <category>Ticket</category> </item> </channel> </rss>