This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

c99 option and C++ Keil

Hello, I see when you import an example from the pack installer ( for example pwm, ble, timer examples ) it arrives with the misc controls --c99 on by default , so I cannot add and compile .cpp files. If I remove this option I get this error ( in the PWM example) : "RTE\Board_Support\nRF51422_xxAC\bsp.c(582): error: #268: declaration may not appear after executable statement in block." this is easy to solve, but are there more serious issues due to which that option was set by default? is all the rest of the code compatible if I add and compile cpp files removing this option ? I mean the libraries with sources and eventually the interaction with the SoftDevice is ok ?

I have seen the question devzone.nordicsemi.com/.../ but I am finding anyway problems

Related