简体   繁体   中英

Unable to open include file 'inttypes.h' in Borland C++ Builder

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 ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM