I don't know why but I have this simple code:
main.cpp
#include <iostream>
int main()
{
std::cout << "hello world"" << std::endl;
return 0;
}
when I try to compile in the terminal whit:
gcc -o main main.cpp
appears undefined symbols for architecture x86_64.