I'm using Borland C++ Builder, I wrote a class where I had to use this header "inttype.h" because I'm using 'int64_t'. the problem is I have this error telling me it can open this include file:
我在使用Borland c++ Builder,我写了一个类,在这里我必须使用这个标题"inttype "。因为我用的是int64_t。问题是这个错误告诉我它可以打开这个include文件:
[C++ Error] RSA.h(3): E2209 Unable to open include file 'inttypes.h'
in Code::Blocks I didn't have this problem, so I thought C++ Builder doesn't have this file, so I added 'inttypes.h' from Code::Blocks directory to my project in C++ Builder but still the same error.
在代码:::block中我没有这个问题,所以我认为c++ Builder没有这个文件,所以我添加了inttypes。h' from Code:: block directory to my project in c++ Builder,但仍然存在相同的错误。
how can I surpass this problem ? or if I can't include this file, what are long integer variables I can use instead of 'int64_t' ?
我怎样才能超越这个问题呢?或者如果我不能包含这个文件,我可以使用什么长整数变量来替代'int64_t' ?
EDITED:
编辑:
my C++ Builder
version is 6
我的c++ Builder版本是6
thanks, I finally found a solution is one could say. instead of using "inttypes.h"
I used "stdint.h"
but still wondering, can this stdint.h
do all the things inttypes.h
can do ?
谢谢,我终于找到解决办法了。而不是使用“inttypes。h stdint“我”。h“但我还在想,这能不能?”h做所有的事情。h能做的吗?
1 个解决方案
#1
4
inttypes is a c99 header. probably your compiler does not fully support c99. you may try #include <cinttypes>
which is the c++ variant. or the more basic stdint.h or cstdint
inttypes是c99头。可能您的编译器不完全支持c99。您可以尝试#include
#1
4
inttypes is a c99 header. probably your compiler does not fully support c99. you may try #include <cinttypes>
which is the c++ variant. or the more basic stdint.h or cstdint
inttypes是c99头。可能您的编译器不完全支持c99。您可以尝试#include