title: G++ compiler giving "undefined reference" error to functions I have clearly defined
body: <p>I have referenced several other questions on this site and others addressing this topic and nothing has helped my issue so far.</p>
  
  <p>I have two classes and a main program written in c++. Total 5 files. Everything is written originally in Visual Studio 2013 and compiles and runs there.</p>
  
  <p>All are in a single folder and I use this command to compile them:</p>
  
  <p>g++ myprogram.cpp</p>
  
  <p>I get errors "undefined reference" errors for the contructors and destructors of both classes. Is there something obvious that I am doing wrong? If not I will post my code. Thank you.</p>