[doctorjlowe@David-Lowes-MacBook-Pro:Documents]$ gcc cashier.cpp -o cashier
Undefined symbols for architecture x86_64:
"std::istream::ignore()", referenced from:
_main in cashier-QsoE3T.o
"std::istream::operator>>(float&)", referenced from:
_main in cashier-QsoE3T.o
"std::istream::operator>>(short&)", referenced from:
_main in cashier-QsoE3T.o
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()", referenced from:
_main in cashier-QsoE3T.o
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()", referenced from:
_main in cashier-QsoE3T.o
"std::ios_base::Init::Init()", referenced from:
___cxx_global_var_init in cashier-QsoE3T.o
"std::ios_base::Init::~Init()", referenced from:
___cxx_global_var_init in cashier-QsoE3T.o
"std::cin", referenced from:
_main in cashier-QsoE3T.o
"std::cout", referenced from:
_main in cashier-QsoE3T.o
"std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)", referenced from:
_main in cashier-QsoE3T.o
"std::terminate()", referenced from:
___clang_call_terminate in cashier-QsoE3T.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 cashier-QsoE3T.o
"std::basic_ostream<char, std::char_traits<char> >& std::operator<<<char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
_main in cashier-QsoE3T.o
"___cxa_begin_catch", referenced from:
___clang_call_terminate in cashier-QsoE3T.o
"___gxx_personality_v0", referenced from:
_main in cashier-QsoE3T.o
Dwarf Exception Unwind Info (__eh_frame) in cashier-QsoE3T.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) |