我正在使用Borland C++ Builder,写了一个类,在其中使用了头文件“inttype.h”,因为我正在使用 'int64_t'。 问题在于,我遇到了这个错误,告诉我无法打开此包含文件:
[C++ Error] RSA.h(3): E2209 Unable to open include file 'inttypes.h'
在Code::Blocks中没有这个问题,所以我认为C++ Builder没有这个文件,于是我将Code::Blocks目录中的'inttypes.h'添加到我的C++ Builder项目中,但仍然出现相同的错误。
我该如何解决这个问题?如果我不能包含这个文件,那么我可以使用哪些长整数变量来代替'int64_t'?
编辑:
我的C++ Builder版本是6
谢谢,我最终找到了一个解决方案。与其使用"inttypes.h",我改用"stdint.h"。
但我仍然想知道,是否可以使用"stdint.h"完成所有"inttypes.h"能做的事情?
inttype
还是inttypes
? - mangustainttype.h
,而你使用了#include "inttypes.h"
。 - mangusta