title: Arduino IDE File.cpp compile error too high for me
body: <p>I'm trying to make an actually not too complicated program for the Arduino UNO, where I log GPS output to an SD card.</p>
  
  <p>The error says:</p>
  
  <pre><code>C:\Users\Marlo\AppData\Local\Temp\build51e9795045faa8d6f671223e5d050b6f.tmp\sketch\src\File.cpp:46:17: error: definition of implicitly-declared 'SDLib::File::~File()'
  
  File::~File(void) {
  
               ^
  </code></pre>
  
  <p><em>Some libraries in folders are used</em> some standard compile output lines here</p>
  
  <pre><code>exit status 1
  Fehler beim Kompilieren.
  </code></pre>
  
  <p>^Last line says "compile error"</p>
  
  <p>The pointed at File.cpp is a library used by SD.h, and it works when I make a simple "open SD -> make file -> write -> close file" program (including all the includes form my main program).</p>
  
  <p>Includes:</p>
  
  <pre><code>#include &lt;stdio.h&gt;      
  #include &lt;SD.h&gt;         //&lt;- uses File.cpp
  #include &lt;stdint.h&gt;     
  #include &lt;Adafruit_GPS.h&gt;
  #include &lt;SPI.h&gt;
  #include "avr/interrupt.h"   
  </code></pre>
  
  <p>The portion of code the error refers to is:</p>
  
  <p>File.cpp</p>
  
  <pre><code>File::File(void) {
    _file = 0;
    _name[0] = 0;
    //Serial.print("Created empty file object");
  }
  
  File::~File(void) {   //&lt;- line 46
    //  Serial.print("Deleted file object");
  }
  
  // returns a pointer to the file name
  char *File::name(void) {
    return _name;
  }
  </code></pre>
  
  <p>I didn't change anything in the File.cpp.</p>
  
  <p><strong>What does this error even mean?</strong></p>
  
  <p>I will gladly share my code, I just don't want to paste the whole thing and make this post huge (but I will, if you say so), so let me know if you need anything :)</p>
  
  <p>Greetings,
  Marlon</p>
  
  <p><strong>Update:</strong> To find the part of the code containing the error, I took one function after another and compiled it in a blank project - it worked. No error.</p>
  
  <p>Then I took the first part, compiled, then added the next, compiled, and so on. <strong>I have now the complete program in another file (same directory), and it works without error.</strong></p>
  
  <p>Sorry if this is just my computers brainfart.</p>