-
I use Zephyr 2.6.99 with the nRF Connect SDK and try to use C++ Exceptions. I set the following configs:
This results in a linker error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For those that might run into the same issue, here's my solution, inspired by https://community.infineon.com/t5/DAVE/Undefined-reference-to-fini/m-p/302777/highlight/true#M2150 I set the C++ and exceptions related config stuff:
To prevent the linker error, I implemented exit() by myself :
Now the code compiles without error and the handled exceptions are being catched. Unhandled exceptions are running into exit(). |
Beta Was this translation helpful? Give feedback.
For those that might run into the same issue, here's my solution, inspired by https://community.infineon.com/t5/DAVE/Undefined-reference-to-fini/m-p/302777/highlight/true#M2150
I set the C++ and exceptions related config stuff:
To prevent the linker error, I implemented exit() by myself :
Now the code compiles without error and the handled exceptions are being catched. Unhandled exceptions are running into exit().