|
Re: Addeding -fxceptions flag to G++ Compiler [message #1784327 is a reply to message #1784257] |
Mon, 26 March 2018 21:15 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Likely caused by -fexceptions followed by -fno-exceptions.
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -I"/Inc" -I"/Inc/User" -I"Inc/User/SD/XML" -I"/Inc/User/display" -I"/Inc/User/SD" -I"/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy" -I"Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Middlewares/ST/STemWin/Config" -I"/Middlewares/ST/STemWin/inc" -I"/Middlewares/ST/STM32_USB_Device_Library/Class/CustomHID/Inc" -I"/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Middlewares/Third_Party/FatFs/src" -I"Middlewares/Third_Party/FreeRTOS/Source/include" -I"/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS" -I"/Drivers/CMSIS/Include" -O2 -g3 -Wall -Wconversion -fmessage-length=0 -fexceptions -ffunction-sections -c -fno-exceptions -fno-rtti -MMD -MP -MF"Src/User/SD/XML/pugixml.d" -MT"Src/User/SD/XML/pugixml.o" -o "Src/User/SD/XML/pugixml.o" "../Src/User/SD/XML/pugixml.cpp"
You'll have to find out where the -fno-exceptions is coming from and disable it.
Alternately, you could try modifying the Expert Settings: command line pattern:
and insert -fexceptions between ${FLAGS} and ${OUTPUT_FLAG}
[Updated on: Tue, 27 March 2018 03:04] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03200 seconds