2021-01-18 03:28 AM - last edited on 2024-08-22 06:55 AM by Andrew Neil
I have installed SPC5 Studio version 6.0 on my Windows 10 PC and compiled sample code.
When compiling the project , i got below warning/issue "Type 'uint32_t' could not be resolved"
Q1: Can you give the solution for this?
Solved! Go to Solution.
2021-02-02 09:13 AM
Hello Rthan ,
it is a preprocessor configuration issue.
You should configure CDT in order to pick stdint.h.
it is located in c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.XXXXXXXXX\toolchain\
Best Regards
Erwan
2021-01-18 05:24 AM
Need to include a file that defines the type or do so yourself.
Should be in stdint.h shouldn't it?
Check what include trees you pull in via config files, etc.
Check the Include Paths and ordering the compiler is using.
2021-01-18 11:44 AM
2021-02-02 09:13 AM
Hello Rthan ,
it is a preprocessor configuration issue.
You should configure CDT in order to pick stdint.h.
it is located in c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.XXXXXXXXX\toolchain\
Best Regards
Erwan
2021-03-25 04:50 AM
Hi Erwan,
Thanks for your response.
I understands that it is preprocessor issue.
Can you guide me that what is CDT ? and how can i configure this on my project?
2021-04-09 05:34 AM
Hi Erwan,
The above screenshot shows the property screen of the project.
Is CDT equal to PATH in above screen? or Guide me the procedure to CDT configuration?
2021-07-02 06:47 AM
Hi, i am newbee too, but i have solve 'uint32_t, 'uint16_t' 'uint8_t doing:
Right click on SPC5XXXXXTestApplication ->Properties
Under C/C++ General->Path and Symbols
Selec Tab Includes, then GNU C->Add..
write C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\include
I hope help somebody
2021-07-04 06:47 PM
Hi PChia.2237
I have the include you mentioned, but I still have an error. "Type 'bool' could not be resolved". Asking for includes <stddef.h>,<stdbool.h>.
Looking for any suggestions. Thanks in advance.
2021-07-04 11:25 PM
Yes, the something with this folder:
C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\lib\gcc\powerpc-eabivle\4.9.4\include
You welcome. The problem is for SPC5 Studio 6. Version 5.8 has no this type of problem.
2022-03-13 11:04 PM
Really useful!!! TNX SO MUCH!!! you won the heven!!!