title: Error: undefined reference to `censorship()'
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix">What is an undefined reference/unresolved external symbol error and how do I fix it?</a>  </p>
  </blockquote>
  
  
  
  <p>I have <code>main.cpp</code>:</p>
  
  <pre><code>#include "censorship_dec.h"
  
  using namespace std;
  
  int main () {
      censorship();
      return 0;
  }
  </code></pre>
  
  <p>this is my <code>censorship_dec.h</code>:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  using namespace std;
  
  void censorship();
  </code></pre>
  
  <p>this is my <code>censorship_mng.cpp</code>:</p>
  
  <pre><code>#include "censorship_dec.h"
  using namespace std;
  
  void censorship()
  {
     cout &lt;&lt; "bla bla bla" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>I tried to run these files in SSH (Linux), so I wrote: <code>make main</code>, but I got:</p>
  
  <pre><code>g++     main.cpp   -o main
  /tmp/ccULJJMO.o: In function `main':
  main.cpp:(.text+0x71): undefined reference to `censorship()'
  collect2: ld returned 1 exit status
  make: *** [main] Error 1
  </code></pre>
  
  <p>please help!</p>