Scenario

When building a simple C++ project in Eclipse (CDT) with just one class (.h and .cpp) file,  fails to build with the following error:


Issue

13:54:27 **** Incremental Build of configuration Debug for project Lab3 ****

make all

Building target: Lab3

Invoking: MacOS X C++ Linker

g++  -o "Lab"  ./wine.o  

Undefined symbols for architecture x86_64:

  "_main", referenced from:

     implicit entry/start for main executable

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [Lab] Error 1


13:54:27 Build Finished (took 169ms)