AnsweredAssumed Answered

HAL libraries don't compile in KEIL using CPP

Question asked by te_winkel.rik on Jul 21, 2014
Latest reply on Jul 31, 2014 by Montassar BEN ROMDHANE
Hello all,

I wanted to use the HAL libraries for a project in KEIL.
But when I add the --CPP flag to support CPP compiling I get a ton of errors, all of them are the following:
..\..\..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c(1585): error:  #511: this operation on an enumerated type requires an applicable user-defined operator function
The code for this line is:
huart->ErrorCode |= HAL_UART_ERROR_DMA;

I tested with KEIL 4.72 and 5.11.
Is it possible to use the HAL libraries for a C++ project?

Rik

Outcomes