The following sketch for Stellaris raises an error when compiling:
Exception handling disabled, use -fexceptions to enable
By default, Energia states -fno-exceptions. Changing -fno-exceptions for -fexceptions throws even more errors:
Undefined reference to 'cxa_allocate_exception'
Undefined reference to 'cxa_throw'
Undefined reference to 'cxa_end_cleanup'
Undefined reference to 'cxa_begin_catch'
Undefined reference to 'cxa_end_catch'
Undefined reference to 'typeinfo for int'
Undefined reference to 'cxa_end_catch'
Exceptions management is critical for large projects, made possible by the Stellaris now Tiva C LaunchPad.
From @rei-vilo on February 18, 2014 16:30
The following sketch for Stellaris raises an error when compiling:
By default, Energia states
-fno-exceptions
. Changing-fno-exceptions
for-fexceptions
throws even more errors:Exceptions management is critical for large projects, made possible by the Stellaris now Tiva C LaunchPad.
Sketch code
See http://www.cplusplus.com/doc/tutorial/exceptions for more details on exceptions.
Copied from original issue: energia/Energia#325