Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/136.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ “我的项目”的属性配置正确,但visual studio仍然无法打开包含头文件_C++_Boost_Compilation_Preprocessor - Fatal编程技术网

C++ “我的项目”的属性配置正确,但visual studio仍然无法打开包含头文件

C++ “我的项目”的属性配置正确,但visual studio仍然无法打开包含头文件,c++,boost,compilation,preprocessor,C++,Boost,Compilation,Preprocessor,各位,对不起,如果这是一个如此天真的问题,但它真的打乱了我 我正在我的项目中使用boost库 我认为我的项目在项目属性的“附加包含目录”部分中配置正确: 我提供了:D:\work material\LIBRARY\BOOST2\x64\include\boost-1\u 71 我还在链接器部分中提供了lib路径 我对应的源代码是: #ifdef HAVE_STDINT_H # include <stdint.h> #else # include <boost/cstdint

各位,对不起,如果这是一个如此天真的问题,但它真的打乱了我

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

我认为我的项目在项目属性的“附加包含目录”部分中配置正确: 我提供了:D:\work material\LIBRARY\BOOST2\x64\include\boost-1\u 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
#如果定义有
#包括
#否则
#包括
typedef boost::int64_t int64_t;
typedef boost::uint64\u t uint64\u t;
typedef boost::int32_t int32_t;
typedef boost::uint32\u t uint32\u t;
typedef boost::int16_t int16_t;
typedef boost::uint16\u t uint16\u t;
typedef boost::int8_t int8_t;
typedef boost::uint8_t uint8_t;
#恩迪夫
宏HAVE_STDINT_H未定义。 当编译时,我得到了错误:

错误C1083无法打开包含文件:“boost/cstdint.hpp”:没有此类文件或目录


我以前已经成功编译过了,但这次似乎永远不会成功。

对不起,各位。这的确是一个幼稚的问题。结果表明,该项目所依赖的另一个项目没有正确的配置。 正如我所提到的,它以前是成功的,所以遵循纯粹的逻辑,我应该尝试从其他方面解决问题。但这是一项时间有限的工作,我想尽快完成它,所以将其发布到堆栈溢出上