c++ – Std::cout couldn’t be found by the gcc linker MacOs

So I’m getting this linking error with gcc: Undefined symbols for architecture x86_64: “std::__1::locale::use_facet(std::__1::locale::id&) const”, referenced from: std::__1::ctype<char> const& std::__1::use_facet<std::__1::ctype<char> >(std::__1::locale const&) in main-a06879.o “std::__1::ios_base::getloc() const”, referenced from: std::__1::basic_ios<char, std::__1::char_traits<char> >::widen(char) const in main-a06879.o “std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)”, referenced from: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(unsigned long, char) in main-a06879.o “std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()”, referenced … Read more