-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed as duplicate of#77653
Closed as duplicate of#77653
Copy link
Labels
duplicateResolved as duplicateResolved as duplicatelibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Description
hash_memory.cc:
#include <unordered_map>
#include <string>
using namespace std;
int main() {
unordered_map<string, int> m;
m["test"]=0;
return 0;
}
$ /usr/local/opt/llvm/bin/clang++ -std=c++26 hash_memory.cc
Undefined symbols for architecture arm64:
"std::__1::__hash_memory(void const*, unsigned long)", referenced from:
unsigned long std::__1::__do_string_hash[abi:ne210101]<char const*>(char const*, char const*) in hash_memory-8f4180.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
$ /usr/local/opt/llvm/bin/clang++ --version
clang version 21.1.2
Target: arm64-apple-darwin25.0.0
Thread model: posix
InstalledDir: /usr/local/Cellar/llvm/21.1.2/bin
Metadata
Metadata
Assignees
Labels
duplicateResolved as duplicateResolved as duplicatelibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.