[ell-i-developers] Re: Ellduino Emulator: Fixing issues for Linux (Ubuntu 12.04 LTS)

  • From: Pekka Nikander <pekka.nikander@xxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Tue, 4 Mar 2014 22:18:21 +0200

>>> All in all tests went well, system didn't like _exit(0) so I just commented 
>>> it away...
>> 
>> What do you mean it "didn't like"?  Didn't compile?  Crashed?  If crashed, 
>> what does gdb say?

> Didn't compile, this is when not commenting it away:
...
> test_pinMode.cpp: In function ‘void loop()’:
> test_pinMode.cpp:32:12: error: ‘_exit’ was not declared in this scope
>      _exit(0);

Try adding unistd.h:

#ifdef EMULATOR
#include <unistd.h>
#endif

(The man command is your friend.)

--Pekka



Other related posts: