user34447: I wrote an code on Arduino and I getting compilation errors. I am using Arduino Due . I wrote the following code :
void setup() {
  Serial.begin(9600);
  analogWriteResolution(12);  // set the analog output resolution to 12 bit (4096 levels)
  analogReadResolution(12);   // set the analog input resolution to 12 bit


}

void loop() {

  // code
}

But compiler gave me the following errors :
'analogReadResolution’ was not declared in this scope
‘analogWriteResolution’ was not declared in this scope
‘DAC0’ was not declared in this scope

I'm using Arduino 2:1.0.5 (on Linux). The board list doesn't show Arduino Due (USB programmable).And I don't have Board Manager option. How do I install Arduino SAM Board to compile the program ?

user10214: According to the Arduino - ReleaseNotes,

ARDUINO 1.5 BETA - 2012.10.22

First release for the unified IDE for both AVR 8-bit and ARM 32-bit   (SAM3 CPUs) architectures.
This release include the SAM Arduino Core used in the Arduino Due   Board.


So your 1.0.5 version does not allow for Due compilation. Download the most up-to-date version and you will be fine (you will be able to install SAM support).
Then you will be able to at least compile. If you have other problems with your code, please open another question here (in order to keep the one-question-per-post behavior of this website).
Don't install arduino from the debian repository, since that version is not updated regularly. Use the website version

34447: <p>I wrote an code on Arduino and I getting compilation errors. I am using Arduino Due . I wrote the following code :</p>

<pre><code>void setup() {
  Serial.begin(9600);
  analogWriteResolution(12);  // set the analog output resolution to 12 bit (4096 levels)
  analogReadResolution(12);   // set the analog input resolution to 12 bit


}

void loop() {

  // code
}
</code></pre>

<p>But compiler gave me the following errors :</p>

<pre><code>'analogReadResolution’ was not declared in this scope
‘analogWriteResolution’ was not declared in this scope
‘DAC0’ was not declared in this scope
</code></pre>

<p>I'm using Arduino 2:1.0.5 (on Linux). The board list doesn't show Arduino Due (USB programmable).And I don't have Board Manager option. How do I install Arduino SAM Board to compile the program ?</p>
 10214: <p>According to the <a href="https://www.arduino.cc/en/Main/ReleaseNotes" rel="nofollow noreferrer">Arduino - ReleaseNotes</a>,</p>

<blockquote>
  <p>ARDUINO 1.5 BETA - 2012.10.22</p>
  
  <ul>
  <li>First release for the unified IDE for both AVR 8-bit and ARM 32-bit   (SAM3 CPUs) architectures.</li>
  <li>This release include the SAM Arduino Core used in the Arduino Due   Board.</li>
  </ul>
</blockquote>

<p>So your 1.0.5 version does not allow for Due compilation. <a href="https://www.arduino.cc/en/Main/Software" rel="nofollow noreferrer">Download</a> the most up-to-date version and you will be fine (you will be able to install SAM support).</p>

<p>Then you will be able to at least compile. If you have other problems with your code, please open another question here (in order to keep the one-question-per-post behavior of this website).</p>

<p>Don't install arduino from the debian repository, since that version is not updated regularly. Use the website version</p>
