I've made fresh install of Qt 5.1.0 on Windows 7. I'm trying to compile my project which is using boost library interprocess communication. Since it was giving compilation error earlier, I've made the moc not to detect boost headers by adding #ifndef Q_MOC_RUN & #endif between the boost headers. It worked fine then.
Now had to change my PC, installed fresh copy of Windows 7, then installed Qt 5.1.0 MSVC 2010. After building the project the same error which used occur earlier for not adding #ifndef Q_MOC_RUN surfaced again. But now I'm adding that around boost headers.
D:\boost_1_53_0\boost\mpl\if.hpp:131: error: Macro argument mismatch.
D:\boost_1_53_0\boost\mpl\if.hpp:131: error: Macro argument mismatch.
To copy to clipboard, switch view to plain text mode
And on clicking the reported issue - the code it pointed is
// if.hpp
struct if_
{
enum { msvc_wknd_ = BOOST_MPL_AUX_MSVC_VALUE_WKND(C_)::value };
typedef typename aux::if_impl< BOOST_MPL_AUX_STATIC_CAST(bool, msvc_wknd_) >
::template result_<T1,T2>::type type;
BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C_,T1,T2))
};
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
BOOST_MPL_AUX_NA_SPEC(3, if_) // <<------------------- Here
}}
// if.hpp
struct if_
{
enum { msvc_wknd_ = BOOST_MPL_AUX_MSVC_VALUE_WKND(C_)::value };
typedef typename aux::if_impl< BOOST_MPL_AUX_STATIC_CAST(bool, msvc_wknd_) >
::template result_<T1,T2>::type type;
BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C_,T1,T2))
};
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
BOOST_MPL_AUX_NA_SPEC(3, if_) // <<------------------- Here
}}
To copy to clipboard, switch view to plain text mode
Someone please help me. It's affecting my tight schedule by not allowing me to proceed further.
And my project settings looks like as shown in the attached pic.
settings.jpg
Thank you.
Bookmarks