I'm trying to compile a very simple C++ program on the command line using gcc. It successfully creates the object files and all that, but the linker spits these errors out at me:
This suggests to me that the linker for some reason can't find the C++ standard libraries. What's up with that? I swear it was working a week ago...
I installed Fink recently... might that have anything to do with it?
Anyone know a fix?
Code:
/usr/bin/ld: Undefined symbols:
std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
___gxx_personality_v0
collect2: ld returned 1 exit status
This suggests to me that the linker for some reason can't find the C++ standard libraries. What's up with that? I swear it was working a week ago...
I installed Fink recently... might that have anything to do with it?
Anyone know a fix?