conflicting types from stdint.h #717
Unanswered
BQTHake003
asked this question in
Q&A
Replies: 1 comment
-
Hi, I have solved this issue by creating stub files for all of the MCU drivers that uses stdint in. And I also mocked these stub versions and all works fine now. I can successfully compile my unit tests using gcc compiler under ceedling build system |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to setup a C unittesting using unity and cmock. For that purpose, I am using ceedling as a build system.
I am using a 64-bit gcc version as I installed it via msys64 on my 64-bit windows machine.
I setup my .yml file to use gcc by default but my embedded project I am using does contain intptr_t and unint_ptr_t in stdint.h under the MCU toolchain. This type is conflicting with gcc that runs on my machine which is defined as int64_t and unsigned int64_t.
How would I solve this conflicting type issue? Especially it will be a common problem when developing under embedded MCU toolchains.
I am using the native unit testing approach instead of a simulator as the MCU doesn't have a reliable simulator to run unit tests on.
Beta Was this translation helpful? Give feedback.
All reactions