user40347: I try to use this ArduinoThread library. In the Arduino I go Sketch->Import Library->ArduinoThread. After that I have the following line in the beginning of the sketch:
#include <ThreadController.h>
#include <Thread.h>
#include <StaticThreadController.h>

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?

user40347: 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.

40347: <p>I try to use <a href="https://github.com/ivanseidel/ArduinoThread" rel="nofollow noreferrer">this</a> <em>ArduinoThread</em> library. In the Arduino I go <em>Sketch-&gt;Import Library-&gt;ArduinoThread</em>. After that I have the following line in the beginning of the sketch:</p>
<pre><code>#include &lt;ThreadController.h&gt;
#include &lt;Thread.h&gt;
#include &lt;StaticThreadController.h&gt;
</code></pre>
<p>I leave <code>setup()</code> and <code>loop()</code> empty and try to verify or upload the sketch on my Arduino board. But I get the following errors:
<a href="https://i.stack.imgur.com/ZMPUn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZMPUn.png" alt="enter image description here" /></a></p>
<p>Is this about the library or I do something wrong?</p>
 40347: <p>I installed Arduino IDE in two different ways (only god knows why). The first one was via using of manager <code>apt-get</code> and other was manually via downloading, unzipping and installation through the <code>install.sh</code> file.
It seems that on Ubuntu 14.04 the</p>

<pre><code>sudo apt-get install arduino
</code></pre>

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

<pre><code>sudo apt-get remove arduino
</code></pre>

<p>And now I am using executable <code>arduino</code> inside unzipped folder. Actually, I am not using Arduino IDE explicitly at all. I am using a Makefile from <a href="https://github.com/sudar/Arduino-Makefile" rel="nofollow noreferrer">here</a>.</p>
