RayCxggg commented on issue #3070: URL: https://github.com/apache/mynewt-core/issues/3070#issuecomment-1732562547
[Solutions ](https://stackoverflow.com/questions/8132399/how-to-printf-uint64-t-fails-with-spurious-trailing-in-format) I can find all suggest that this is a C99 standard problem. I have add below code to `repos/apache-mynewt-core/encoding/tinycbor/src/cborpretty.c` and `repos/apache-mynewt-core/encoding/tinycbor/src/cbortojson.c`: ``` #define __STDC_FORMAT_MACROS 1 ... #include <inttypes.h> ``` But it doesn't solve the problem. My compiler version is `arm-none-eabi-g++ (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]`, what is the suggesting version of gcc to build MynewtOS? I find no `__STDC_FORMAT_MACROS` in the entire Mynewt repo. Does that mean such error has never occurred before? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
