3
votes

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:

[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.

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' ?

EDITED:

my C++ Builder version is 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 ?

1
inttype or inttypes ?mangusta
inttypes , but I tried inttype after reading your comment, same result. @mangustaMohe TheDreamy
:-) i mean, probably the header file is called inttype.h while you use #include "inttypes.h"mangusta
What version of c++ builder?Joe
please also take look at: stackoverflow.com/questions/7597025/… and the wikipedia article linked therevlad_tepesch

1 Answers

4
votes

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