2025-12-30 6:38 AM - last edited on 2025-12-30 6:41 AM by Andrew Neil
When I build my project in "Debug" mode all works fine, if I build the project in "Release" mode an error appears:
C:/ST/STM32CubeIDE_2.0.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -llibarm_cortexM7lfdp_math.a: No such file or directory
GCC linker
Libraries (-l): libarm_cortexM7lfdp_math.a
Library search path (-L): "${workspace_loc:/${ProjName}/Drivers/CMSIS/Lib/GCC}"
Any help ?
Thank you
Solved! Go to Solution.
2025-12-30 7:17 AM
The message is from the Linker, so it should be in the Linker settings somewhere.
You could try saving the build output from the two configurations, and compare them ...
2025-12-30 6:46 AM
@carloV wrote:When I build my project in "Debug" mode all works fine, if I build the project in "Release" mode an error appears
"Debug" and "Release" are just different sets of configuration options.
So this means that something's missing in your "Release" configuration; specifically, something which allows it to find that libarm_cortexM7lfdp_math.a library.
So carefully compare & contrast the linker settings for the two configurations.
@carloV wrote:GCC linker
Libraries (-l): libarm_cortexM7lfdp_math.a
Library search path (-L): "${workspace_loc:/${ProjName}/Drivers/CMSIS/Lib/GCC}"
Is that from the "Debug" or "Release" configuration?
2025-12-30 6:52 AM
Thank you for your reply,
I set the configuration as "Release", then I insert the library name and the library path into the MCU GCC Linker -> Library
CarloV
2025-12-30 6:54 AM
Thank you for your reply,
I set the configuration as "Release", then I insert the library name and the library path into the MCU GCC Linker -> Library
CarloV
2025-12-30 6:56 AM
2025-12-30 6:58 AM
So, again, carefully compare & contrast the settings for the two configurations ("Debug" and "Release").
2025-12-30 7:07 AM
Ok,
they seem the same...what concerns the linker (GCC linker), there are no differences...do you think that I have to check other part of the setting ?
CarloV
2025-12-30 7:17 AM
The message is from the Linker, so it should be in the Linker settings somewhere.
You could try saving the build output from the two configurations, and compare them ...