Topic: "Size of unsigned long long not detected"
I am using the TI CCS environment, the GCC compiler (linero) version 7.3
When compiling a "C" file, I get no errors.
When compiling a "CPP" file, I get the following:
In file included from C:/../projects/WolfSSL-4-7/Wolf/wolfssl/wolfcrypt/ecc.h:56:0, from C:/../projects/WolfSSL-4-7/Wolf/wolfssl/openssl/ec.h:19, from C:/../projects/WolfSSL-4-7/Wolf/wolfssl/openssl/evp.h:40, from C:/../projects/WolfSSL-4-7/Wolf/wolfssl/openssl/hmac.h:28, from C:/../projects/WolfSSL-4-7/Wolf/wolfssl/ssl.h:80, from ../filename.cpp:22: C:/../projects/WolfSSL-4-7/Wolf/wolfssl/wolfcrypt/sp_int.h:127:6: error: #error "Size of unsigned long long not detected" #error "Size of unsigned long long not detected" ^~~~~ C:/../projects/WolfSSL-4-7/Wolf/wolfssl/wolfcrypt/sp_int.h:236:14: error: 'sp_uint64' does not name a type; did you mean 'sp_uint32'? typedef sp_uint64 sp_int_word; ^~~~~~~~~ sp_uint32 C:/../projects/WolfSSL-4-7/Wolf/wolfssl/wolfcrypt/sp_int.h:237:15: error: 'sp_int64' does not name a type; did you mean 'sp_int32'? typedef sp_int64 sp_int_sword; ^~~~~~~~ sp_int32
Among all the other settings I have in "user_settings.h" there are these:
#define OPENSSL_EXTRA /* */ #define NO_64BIT #define SIZEOF_LONG_LONG 8 #define NO_ERROR_STRINGS #define FP_MAX_BITS 8192 /* Increase for 4096 bit key */ #define HAVE_ECC #define HAVE_ALPN #define USE_WOLF_STRTOK /* use with HAVE_ALPN */
If the compiler doesn't know what a type sp_int64 is, and the #define NO_64BIT doesn't solve it, what is the solution?
<Code shown is not to scale>