Intel: When compiling with the Nios® II Software Build Tool (SBT) for Eclipse v15.1, an error occurs stating that exit is not declared in the standard library (cstdlib).

Nios II

<Error message>
c:\altera\15.1\nios2eds\bin\gnu\nios2-elf\include\c++\4.9.2\cstdlib:135:11: error: '::exit' has not been declared


Category: Nios® II
Tools: Nios® II EDS
device:-


On the Main tab of the BSP Editor, set the hal.enable_exit and hal.enable_clean_exit Box under the Advanced option to ON.



Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.