【问题标题】:the property of the my project is configured right , but visual studio still can not open include header file我的项目的属性配置正确,但Visual Studio仍然无法打开包含头文件
【发布时间】:2019-12-09 13:37:17
【问题描述】:

大家,对不起,如果这是一个如此幼稚的问题,但它真的打乱了我。

我在我的项目中使用 boost 库。

我认为我的项目配置正确,在项目的属性中,在附加的包含目录部分: 我提供了 :D:\work material\LIBRARY\BOOST2\x64\include\boost-1_71 我还在链接器部分提供了 lib 路径..

我对应的源码是:

#ifdef HAVE_STDINT_H
#  include <stdint.h>
#else
#  include <boost/cstdint.hpp>

typedef boost::int64_t    int64_t;
typedef boost::uint64_t  uint64_t;
typedef boost::int32_t    int32_t;
typedef boost::uint32_t  uint32_t;
typedef boost::int16_t    int16_t;
typedef boost::uint16_t  uint16_t;
typedef boost::int8_t      int8_t;
typedef boost::uint8_t    uint8_t;
#endif

宏 HAVE_STDINT_H 未定义。 编译时出现错误:

错误 C1083 无法打开包含文件:'boost/cstdint.hpp':没有这样的文件或目录

我之前编译成功了,这次好像永远不行了。

【问题讨论】:

    标签: c++ boost compilation preprocessor


    【解决方案1】:

    对不起,伙计们和女孩们。确实,这是一个幼稚的问题。事实证明,这个项目所依赖的另一个项目没有正确的配置。 正如我所提到的,它之前成功了,所以遵循纯逻辑,我应该尝试从其他方向确定问题。但这是一个时间有限的工作,我想尽快完成它,所以在堆栈溢出时发布它。

    【讨论】:

      猜你喜欢
      • 2016-07-02
      • 1970-01-01
      • 2012-09-11
      • 2013-10-25
      • 2013-04-30
      • 1970-01-01
      • 2022-07-02
      • 1970-01-01
      • 2012-06-23
      相关资源
      最近更新 更多