2017-09-19 28 views
0

我下载了Windows的最新和最大的提升,即1.65.1(zip文件)。编译一个项目,我现在得到static_assert.hpp自身包含的错误。果然,这里是全部:boost/static_assert.hpp自身包含

//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. 
//Distributed under the Boost Software License, Version 1.0. (See accompanying 
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 

#ifndef BOOST_QVM_STATIC_ASSERT 
#include <boost/static_assert.hpp> 
#define BOOST_QVM_STATIC_ASSERT BOOST_STATIC_ASSERT 
#endif 

以前的版本我都有,1.62,有一个装有吨宏和大写jibberish的static_assert.hpp。

我需要做什么?

编辑:我下载了boost_1_65_1.7z存档,并没有问题。问题解决了。有人可以向助推员报告吗?

回答

0

当我安装使用.7z存档而不是.zip时,一切都很好。

0

您似乎有冲突的包含路径。 有多个static_assert.hpp文件在增强,您粘贴static_assert.hpp的内容是从boost/qvmboost/static_assert.hpp即使在1.65.1中也有大量的宏。

我建议你包括static_assert.hpp作为boost/static_assert.hpp以避免包含路径混淆。

+0

不,如我所说,我粘贴的内容来自boost/static_assert.hpp。该文件在.zip存档中发生故障。在.7z存档中是正确的。 –

+0

对不起,但你没有这么说。你解释说这些是static_assert.hpp的内容,你没有指定路径。 – Pedja

+0

@JiveDadson从[boost/qvm/static_assert.hpp](http://www.boost.org/doc/libs/1_65_1/boost/qvm/static_assert)粘贴的代码(仅通过查看宏来显而易见)。 HPP)。 – llonesmiz