Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to built boost?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-03-16 13:05:16


On Tuesday, March 15, 2011 16:33:03 PrvaPonta wrote:
> Alright, the program that uses Filesystem compiles and runs without
> problem, but only if used by itself.
> If I use Filesystem within a program that also needs OpenCV and Eigen
> libraries, there seems to be a conflict:
> ...
> In file included from
> C:\boost_1_45_0/boost/filesystem/v3/path_traits.hpp:22:0,
> from C:\boost_1_45_0/boost/filesystem/v3/path.hpp:25,
> from C:\boost_1_45_0/boost/filesystem.hpp:32,
> from ..\src\ComputeNatScaleFunction.cpp:18:
> C:\boost_1_45_0/boost/type_traits/decay.hpp: In instantiation of
> 'boost::decay<cv::<anonymous enum> >':
> C:\cmake_binaries\include/opencv2/core/operations.hpp:766:23:
> instantiated from here
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: 'cv::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: trying to
> instantiate 'template struct boost::remove_reference'
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: 'cv::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: trying to
> instantiate 'template struct boost::remove_reference'
> C:\boost_1_45_0/boost/type_traits/decay.hpp: In instantiation of
> 'boost::decay<cv::<anonymous enum> >':
> C:\cmake_binaries\include/opencv2/core/operations.hpp:917:21:
> instantiated from here
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: 'cv::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: trying to
> instantiate 'template struct boost::remove_reference'
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: 'cv::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: trying to
> instantiate 'template struct boost::remove_reference'
> C:\boost_1_45_0/boost/type_traits/decay.hpp: In instantiation of
> 'boost::decay<Eigen::<anonymous enum> >':
> C:\Eigen2/Eigen/src/Core/GenericPacketMath.h:116:18: instantiated from
> here
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: 'Eigen::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:28:66: error: trying to
> instantiate 'template struct boost::remove_reference'
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: 'Eigen::' is/uses
> anonymous type
> C:\boost_1_45_0/boost/type_traits/decay.hpp:38:17: error: trying to
> instantiate 'template struct boost::remove_reference'
>
> etc.
>
> Are there known conflicts between Boost and OpenCV/Eigen/other libraries? I
> am using Eclipse CDT and MinGW toolchain. After going through previously
> described problems, my Filesystem library is of version 3, whereas other
> ones are of version 2.

I suggest you ask this questions on boost-users_at_[hidden] mailing list.
Folks on this list can help with Boost.Build, but once you get in compile errors
land, you'll have much wider audience on that other list.

HTH,

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk