[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with libboost needed



Hi Sebastian,

On Mon, Nov 28, 2011 at 10:25:53AM +0100, Sebastian Ramacher wrote:
> There is a list of deprecated methods and their replacement at [1]. If that
> doesn't help you can try to compile with -DBOOST_FILESYSTEM_VERSION=2 for now
> [2, note at the top].

thanks for the helpful hint.  Before I try the workaround with
BOOST_FILESYSTEM_VERSION=2  I'd like to try whether I could provide a proper
fix.  Thanks to your link to the deprecated classes I was able to work around
the first problem[3].  However, a new one raised and this does not look that
simple as the first one - at least not to me as a weak C++ coder.  Any help
with this:

make[2]: Entering directory `/tmp/buildd/autodock-vina-1.1.2/build/linux/release'
g++ -pthread -ansi -Wno-long-long -O3 -DNDEBUG -I /usr/include  -I ../../../src/lib -o main.o -c ../../../src/main/main.cpp 
../../../src/main/main.cpp: In function 'path make_path(const string&)':
../../../src/main/main.cpp:50:44: error: invalid conversion from 'bool (*)(const string&) {aka bool (*)(const std::basic_string<char>&)}' to 'boost::enable_if_c<true, void>::type* {aka void*}' [-fpermissive]
/usr/include/boost/filesystem/v3/path.hpp:130:5: error:   initializing argument 2 of 'boost::filesystem3::path::path(const Source&, typename boost::enable_if<boost::filesystem3::path_traits::is_pathable<typename boost::decay<Source>::type> >::type*) [with Source = std::basic_string<char>, typename boost::enable_if<boost::filesystem3::path_traits::is_pathable<typename boost::decay<Source>::type> >::type = void]' [-fpermissive]
make[2]: *** [main.o] Error 1


Kind regards

         Andreas.
 
> [1] http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/deprecated.html
> [2] http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/index.htm

[3] svn://svn.debian.org/svn/debian-med/trunk/packages/autodock-vina/trunk/debian/patches/fix_boost.patch


-- 
http://fam-tille.de


Reply to: