[boostdep] Unable to build on 'develop' branch
When I try to build boostdep on the 'develop' branch with gcc-4.8.1 I get:
gcc.compile.c++ ..\..\..\bin.v2\tools\boostdep\src\gcc-mingw-4.8.1\release\link-static\boostdep.o boostdep.cpp: In function 'void scan_module_dependencies(const string&, module_primary_actions&)': boostdep.cpp:193:46: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstream(const value_type*)' std::ifstream is( it->path().c_str() ); ^ boostdep.cpp:193:46: note: candidates are: In file included from ..\..\../boost/filesystem/operations.hpp:46:0, from ..\..\../boost/filesystem.hpp:17, from boostdep.cpp:11: c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:467:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode] basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) ^ c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:467:7: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const char*' c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:453:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits<char>] basic_ifstream() : __istream_type(), _M_filebuf() ^ c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:453:7: note: candidate expects 0 arguments, 1 provided c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:427:11: note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&) class basic_ifstream : public basic_istream<_CharT, _Traits> ^ c:\utilities\mingwcurrent\lib\gcc\mingw32\4.8.1\include\c++\fstream:427:11: note: no known conversion for argument 1 from 'const value_type* {aka const wchar_t*}' to 'const std::basic_ifstream<char>&' In file included from ..\..\../boost/filesystem/path_traits.hpp:23:0, from ..\..\../boost/filesystem/path.hpp:25, from ..\..\../boost/filesystem.hpp:16, from boostdep.cpp:11: ..\..\../boost/system/error_code.hpp: At global scope: ..\..\../boost/system/error_code.hpp:221:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable] static const error_category & posix_category = generic_category(); ^ ..\..\../boost/system/error_code.hpp:222:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable] static const error_category & errno_ecat = generic_category(); ^ ..\..\../boost/system/error_code.hpp:223:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable] static const error_category & native_ecat = system_category();
Similar error occurs if I build with clang. Anybody know what the problem is ? I pulled the latest for all submodules on 'develop'.
Edward Diener wrote:
When I try to build boostdep on the 'develop' branch with gcc-4.8.1 I get:
gcc.compile.c++ ..\..\..\bin.v2\tools\boostdep\src\gcc-mingw-4.8.1\release\link-static\boostdep.o boostdep.cpp: In function 'void scan_module_dependencies(const string&, module_primary_actions&)': boostdep.cpp:193:46: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstream(const value_type*)' std::ifstream is( it->path().c_str() );
Should be fixed now.
On 7/17/2014 4:01 PM, Peter Dimov wrote:
Edward Diener wrote:
When I try to build boostdep on the 'develop' branch with gcc-4.8.1 I get:
gcc.compile.c++ > ..\..\..\bin.v2\tools\boostdep\src\gcc-mingw-4.8.1\release\link-static\boostdep.o
boostdep.cpp: In function 'void scan_module_dependencies(const string&, > module_primary_actions&)': boostdep.cpp:193:46: error: no matching function for call to > 'std::basic_ifstream<char>::basic_ifstream(const value_type*)' std::ifstream is( it->path().c_str() );
Should be fixed now.
Thanks ! Builds now. Is there any doc anywhere about its command-line options ? I gather I need to run it from the modular-boost root directory.
Edward Diener wrote:
Is there any doc anywhere about its command-line options ? I gather I need to run it from the modular-boost root directory.
There is no documentation as of now, but if you run it without arguments, it prints a short summary. There is also an example report.bat file that builds the report I've been uploading.
On 7/17/2014 4:52 PM, Peter Dimov wrote:
Edward Diener wrote:
Is there any doc anywhere about its command-line options ? I gather I need to run it from the modular-boost root directory.
There is no documentation as of now, but if you run it without arguments, it prints a short summary. There is also an example report.bat file that builds the report I've been uploading.
OK, but a little basic documentation would be welcome. I am assuming that given the name of a module it will show all the dependencies of that module. But I do not know what primary, secondary, or reverse means. The latter sounds like a list of dependents.
participants (2)
-
Edward Diener
-
Peter Dimov