C++ Hello World Undefined symbols for architecture x86_64:
Should be straightforward, but when I compile the C++ Hello World code returns a bunch of undefined symbol errors. // my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; } Heres how I compile: Open terminal, cd to the directory, gcc hello.cpp Then I get the errors. Any thoughts? I feel like I may have broken somehting... or I am just missing something really obvious. Any help is greatly appreciated! Heres the errors: Undefined symbols for architecture x86_64: "std::cout", referenced from: _main in ccfUAf5i.o "std::basic_ostream<char,