user14790: I would like to micromize my Arduino project and move it to ATTiny85. The first step was using sleep functions because I just want it to run once a day. Now I need to connect the 433Mhz stuff but I'm getting into a fight with cores vs. libraries vs. missing functions.
No matter what core and library combination I pick, there always seems to be something missing.
/home/thijs/Documents/Arduino/libraries/VirtualWire/VirtualWire.cpp:260:18: error: 'WGM12' was not declared in this scope
     TCCR1B = _BV(WGM12) | _BV(CS10);

I have tried Tiny cores, high lowtech cores and Manchester and VirtualWire libraries. I don't want to dive into the libraries and make them 'suitable' for ATTiny because I have more than one project.
How do I approach this dependency problem? 
[edit]
Found a better core here:
https://github.com/SpenceKonde/ATTinyCore

user7508: The error you posted has nothing to do with an Arduino core. This is just plain avr-libc stuff. In order to use this kind of functionality, you need to
#include <avr/io.h>

In the Arduino core, it is common to have this done by default. But if this is not the case with your chosen core, just add the #include yourself in the program.

14790: <p>I would like to micromize my Arduino project and move it to ATTiny85. The first step was using sleep functions because I just want it to run once a day. Now I need to connect the 433Mhz stuff but I'm getting into a fight with cores vs. libraries vs. missing functions.</p>

<p>No matter what core and library combination I pick, there always seems to be something missing.</p>

<pre><code>/home/thijs/Documents/Arduino/libraries/VirtualWire/VirtualWire.cpp:260:18: error: 'WGM12' was not declared in this scope
     TCCR1B = _BV(WGM12) | _BV(CS10);
</code></pre>

<p>I have tried <code>Tiny</code> cores, <code>high lowtech</code> cores and Manchester and VirtualWire libraries. I don't want to dive into the libraries and make them 'suitable' for ATTiny because I have more than one project.</p>

<p>How do I approach this dependency problem? </p>

<p>[<strong>edit</strong>]<br>
Found a better core here:
<a href="https://github.com/SpenceKonde/ATTinyCore" rel="nofollow">https://github.com/SpenceKonde/ATTinyCore</a></p>
 7508: <p>The error you posted has nothing to do with an Arduino core. This is just plain avr-libc stuff. In order to use this kind of functionality, you need to</p>

<pre class="lang-c++ prettyprint-override"><code>#include &lt;avr/io.h&gt;
</code></pre>

<p>In the Arduino core, it is common to have this done by default. But if this is not the case with your chosen core, just add the <code>#include</code> yourself in the program.</p>
