3 years ago.

Compiles well for debug but error 230 for release (compile macro -DNDEBUG)

Hi Env mbed web, nrf51822

I have just finished a nrf51822 program that compiles well without any compile macros defined. However, if I add -DNDEBUG compile macro compilation breaks and shows error 230 (problems in assembly?!?)

Please, help me


1 Answer

3 years ago.

Hello Alex,

I believe you do not put the -D prefix when adding the macro in the online compiler. Try just writing NDEBUG and see if that works for you. Hope that helps!

-Karen, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Accepted Answer

Done! Thank you

posted by Alex Co 13 Jul 2018