我正在构建一些依赖于boost的软件。构建因错误而失败:
/usr/include/boost/checked_delete.hpp:15:41: fatal error: boost/core/checked_delete.hpp: No such file or directory
/ usr / include / boost /中的checked_delete.hpp文件说它已被弃用,并引用子目录boost / core / checked_delete.hpp中的同一文件:
/*
* Copyright (c) 2014 Glen Fernandes
*
* 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_CHECKED_DELETE_HPP
#define BOOST_CHECKED_DELETE_HPP
**// The header file at this path is deprecated;
// use boost/core/checked_delete.hpp instead.**
#include <boost/core/checked_delete.hpp>
#endif
但是,我在usr / include / boost中找不到核心目录,这似乎是错误的原因。我尝试删除然后重新安装boost(sudo apt-get install libboost-all-dev),但是错误仍然存在。我正在使用1.58.0版。
为什么要提升引用它没有的核心目录?安装后,我需要做些什么来增强此目录的创建力吗?