【发布时间】: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