Post

Replies

Boosts

Views

Activity

C++ Linker Errors on M1 macbook.
Ive tried to fix this error for a couple of days now and everything i do just seem's to not work. I am using gcc/clang on the latest updated version and xcode. This is the code im trying to compile: #include <iostream> int main(){ std::cout << "hello world"; return 0; } Specifically its a Linker error saying this: ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Another clue I found within the hundred thousand lines of error codes was this: Undefined symbols for architecture arm64:  "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 cardvalid-55edf7.o And it keeps going with these references for a while. My guess is that it has something to do with the stdlib but im not sure. I have tried to uninstall xcode and reinstall it to no luck. If anybody has some idea it would be greatly apreciated.
5
1
2.7k
Aug ’22