title: eclipse 4.2 cdt with ubuntu 12.04 configuration
body: <p>I am running Eclipse CDT (Eclipse v. 4.2) on Ubuntu 12.04. When I create a C++ project (Under Project type -> Executable -> Hello World C++ Project) and select the Linux GCC toolchain, the standard hello world application compiles and runs just fine. When I try to create an Empty Project (from the same menu as before), selecting the Linux GCC toolchain also, it brings several build errors:</p>
  
  <pre><code>   make:***[tst] Error 1
     Symbol 'cout' could not be resolved
     Symbol 'endl' could not be resolved
     Symbol 'std' could not be resolved
     undefined reference to 'main'
  </code></pre>
  
  <p>When I compare the path settings (Properties -> C/C++ Build, and C/C++ General) for the .cpp file generated by "Hello World C++ Project", and for the .cpp file added to the "Empty Project" they have the same configurations and settings, so I am not sure why the empty project isn't detecting the standard library and compiling. All the files in the includes folder are also the same. This also happens on my Windows 7 (MingW compiler) install, and on my MacOS X install. For now I can just create my projects as a "Hello World C++ project", get rid of the text and code what I want, but I am really curious as to how to set it up from scratch, especially since it is my understanding that creating an "Empty Project" under the Executable folder (as opposed to creating a Makefile project) should include a makefile and all the necessary paths (as long as the proper toolchain is selected?). </p>
  
  <p>The actual build error from the CDT console is:</p>
  
  <pre><code>    20:49:26 **** Incremental Build of configuration Debug for project tst ****
      make all 
      Building target: tst
      Invoking: GCC C++ Linker
      g++  -o "tst"  ./src/test.o   
      /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
      (.text+0x20): undefined reference to `main'
      collect2: ld returned 1 exit status
      make: *** [tst] Error 1
  
      20:49:26 Build Finished (took 62ms)
  </code></pre>
  
  <p>The code I'm trying to run is just the default hello world code generated by eclipse:</p>
  
  <pre><code>   #include &lt;iostream&gt;
     using namespace std;
  
     int main() {
     cout &lt;&lt; "!!!Hello World!!!" &lt;&lt; endl; // prints !!!Hello World!!!
     return 0;
     }
  </code></pre>
  
  <p>Thanks in advance.</p>