steve-youngs-mac-pro:myc steve$ cc -o energy energy.cpp
Undefined symbols:
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in ccVmTdM2.o
"std::ios_base::Init::~Init()", referenced from:
___tcf_0 in ccVmTdM2.o
"std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
_main in ccVmTdM2.o
"std::ios_base::Init::Init()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccVmTdM2.o
"std::cout", referenced from:
__ZSt4cout$non_lazy_ptr in ccVmTdM2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
steve-youngs-mac-pro:myc steve$