Error: `nullptr` was not declared in this scope. Arduino IDE I try to use this ArduinoThread library. In the Arduino I go Sketch-&gt;Import Library-&gt;ArduinoThread. After that I have the following line in the beginning of the sketch:
#include &lt;ThreadController.h&gt;
#include &lt;Thread.h&gt;
#include &lt;StaticThreadController.h&gt;

I leave setup() and loop() empty and try to verify or upload the sketch on my Arduino board. But I get the following errors:

Is this about the library or I do something wrong?
I installed Arduino IDE in two different ways (only god knows why). The first one was via using of manager apt-get and other was manually via downloading, unzipping and installation through the install.sh file.
It seems that on Ubuntu 14.04 the

sudo apt-get install arduino


command provides an installation of an old version of Arduino IDE.
So eventually I was launching Arduino IDE by arduino command in my terminal (actually I was using d-menu in i3). No surprise it ran the old one installed by apt-get. I just removed that version by

sudo apt-get remove arduino


And now I am using executable arduino inside unzipped folder. Actually, I am not using Arduino IDE explicitly at all. I am using a Makefile from here.