conflicting types for 'uint32_t' issue
-
I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.
-
I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.
-
I got the conflicting types error when I built the code, while, i searched the workspace, i only found one tyepdef, Shrink ▲ Copy Code typedef unsigned int uint32_t; in Eclipse, search:typedef*uint32_t i can't find where there is another typedef * uint32_t. Please help to give some ideas.
focusdoit wrote:
Please help to give some ideas.
The error message implies that you are calling a function that expected a uint32_t so check the function signature of every function you are calling. I don't understand why nearly everyone that posts a question omits pertinent information. It would really help if you posted relevant code and error messages.
-
focusdoit wrote:
Please help to give some ideas.
The error message implies that you are calling a function that expected a uint32_t so check the function signature of every function you are calling. I don't understand why nearly everyone that posts a question omits pertinent information. It would really help if you posted relevant code and error messages.
Thanks, it's a big project, i found the issue,
new 1 (33 hits)
XXX_Global.h: error: conflicting types for 'uint32_t'
Line 17: typedef unsigned int uint32_t;
gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
Line 24: typedef __uint32_t uint32_t ;there are 2 tyepdef uint32_t
-
Thanks, it's a big project, i found the issue,
new 1 (33 hits)
XXX_Global.h: error: conflicting types for 'uint32_t'
Line 17: typedef unsigned int uint32_t;
gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
Line 24: typedef __uint32_t uint32_t ;there are 2 tyepdef uint32_t
focusdoit wrote:
i found the issue
I'm happy to see you made progress. It's unusual to ask this type of basic question, you should change the variable type on those function calls to
uint32_t
and recompile. It would be great if you revealed the source code. You are forcing anyone that assists you to speculate. -
Thanks, it's a big project, i found the issue,
new 1 (33 hits)
XXX_Global.h: error: conflicting types for 'uint32_t'
Line 17: typedef unsigned int uint32_t;
gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
Line 24: typedef __uint32_t uint32_t ;there are 2 tyepdef uint32_t