2026-02-17 8:07 PM
Toolchain is ""GNU Tools for STM32(13.3rel1)
Solved! Go to Solution.
2026-02-23 10:06 PM
I finally managed to solve this problem on my own.
I checked the Predefined Macros using the GCC compile options “-v -dM -E”.
I was finally able to do it by adding the following.
Defines:
__cplusplus=201402L
__cpp_ref_qualifiers=200710L
__INTPTR_TYPE__=int
__INT32_TYPE__=long int
__GNUC__
__VFP_FP__
__IEEE_LITTLE_ENDIAN
and
my projct defines(like STM32L476xx, USE_FULL_LL_DRIVER, ...)
Include Paths:
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/newlib-nano/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/arm-none-eabi/thumb/v7e-m+fp/hard/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/backward/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/lib/gcc/arm-none-eabi/13.3.1/include/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/lib/gcc/arm-none-eabi/13.3.1/include-fixed/
and
my projct paths(like ./include, ./sharelib, ...)
I hope this will be helpful for anyone who wants to do the same.
2026-02-17 8:29 PM
The defines and include directories used during compilation are shown in project properties. Right click on the project to access project properties. You should match those. They are also shown during compilation on the console tab.
If you still run into errors, read those error messages and let that guide what you need to change.
2026-02-17 8:56 PM
2026-02-23 10:06 PM
I finally managed to solve this problem on my own.
I checked the Predefined Macros using the GCC compile options “-v -dM -E”.
I was finally able to do it by adding the following.
Defines:
__cplusplus=201402L
__cpp_ref_qualifiers=200710L
__INTPTR_TYPE__=int
__INT32_TYPE__=long int
__GNUC__
__VFP_FP__
__IEEE_LITTLE_ENDIAN
and
my projct defines(like STM32L476xx, USE_FULL_LL_DRIVER, ...)
Include Paths:
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/newlib-nano/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/arm-none-eabi/thumb/v7e-m+fp/hard/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/c++/13.3.1/backward/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/lib/gcc/arm-none-eabi/13.3.1/include/
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/lib/gcc/arm-none-eabi/13.3.1/include-fixed/
and
my projct paths(like ./include, ./sharelib, ...)
I hope this will be helpful for anyone who wants to do the same.