title: C++ Compile Error, Help Needed - ld: symbol(s) not found for architecture x86_64
body: <p>I am trying to get this to compile, but every time I go to compile main.cpp I get the same error: </p>
  
  <pre><code>Undefined symbols for architecture x86_64:
    "tlogic::tlogic()", referenced from:
        _main in ccAcayG4.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I tried debugging it for a while, but the error seems to persist. Any help would be appreciated. </p>
  
  <p>Here is main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  #include "tlogic.h"
  
  int main()
  {
          tlogic test;
  
          exit(EXIT_SUCCESS);
  }
  </code></pre>
  
  <p>tlogic.h:</p>
  
  <pre><code>#ifndef TLOGIC_H
  #define TLOGIC_H
  
  class tlogic {
  public:
          tlogic();
          tlogic(bool);
          ~tlogic();
          void init();
          void get_command();
  
  private:
          bool debug;
  };
  
  #endif
  </code></pre>
  
  <p>And finally, tlogic.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  #include "tlogic.h"
  
  tlogic::tlogic()
  {
          cout &lt;&lt; "Testing" &lt;&lt; endl;
          debug = false;
  }
  
  tlogic::tlogic(bool debug_)
  {
          cout &lt;&lt; "Testing 2" &lt;&lt; endl;
          debug = debug_;
  }
  
  tlogic::~tlogic()
  {
  }
  
  void tlogic::game_init()
  {
  }
  
  void tlogic::get_command()
  {
  }
  </code></pre>
  
  <p>Thank you for the help.</p>
  
  <p>EDIT: Fixed tlogic::glogic, etc.</p>