[ell-i-developers] test environment: _exit(0) ==>was not declared in this scope error

  • From: Eero Hakala <eero.k.hakala@xxxxxxxxx>
  • To: ell-i-developers <ell-i-developers@xxxxxxxxxxxxx>
  • Date: Thu, 29 May 2014 15:29:59 +0300

Hi, I got the environment up and running and got the same old error - how
to avoid this _exit(0) ==>was not declared in this scope error?

g++ -c -std=c++11 -g -Os -Wall -ffunction-sections -fdata-sections
-fno-common -nostdlib -m32 -march=i386 -DF_CPU=48000000L -DARDUINO=1.5.4
-DELLI_STM32F051_ELLDUINO -DARDUINO_ARCH_STM32 -fno-rtti -fno-exceptions
-fno-threadsafe-statics -DEMULATOR -D__STM32F051__ -Dmain=emulated_main
-I/home/eero/Ell-i/Runtime/stm32/tests/../emulator/inc
-I/home/eero/Ell-i/Runtime/stm32/tests/../cores/arduelli
-I/home/eero/Ell-i/Runtime/stm32/tests/../system/stm32/inc
-I/home/eero/Ell-i/Runtime/stm32/tests/../system/stm32/CMSIS/Include
-I/home/eero/Ell-i/Runtime/stm32/tests/../variants/ellduino
 -I/home/eero/Ell-i/Runtime/stm32/tests/../libraries/SPI/.   -c -o
test_digitalRead.o test_digitalRead.cpp
test_digitalRead.cpp: In function âvoid loop()â:
test_digitalRead.cpp:29:12: error: â_exitâ was not declared in this scope
     _exit(0);
            ^
make[1]: *** [test_digitalRead.o] Error 1
make[1]: Leaving directory
`/home/eero/Ell-i/Runtime/stm32/tests/test_digitalRead'
make: *** [test_digitalRead] Error 2


-eero-

Other related posts:

  • » [ell-i-developers] test environment: _exit(0) ==>was not declared in this scope error - Eero Hakala