Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git 584cb67d2df32163efe61cfa58b3c798ee5b6b5c)

Options
Boost 1.73.0
Compiler Default
no pedantic
Raw compiler options
a.cpp

Author

anonymous

about 4 years ago

a.h
a.cpp

$ clang++ prog.cc -I/opt/wandbox/boost-1.73.0/clang-head/include a.cpp
/tmp/prog-66526a.o: In function `void f<int>()':
prog.cc:(.text._Z1fIiEvv[_Z1fIiEvv]+0x59): undefined reference to `std::__1::set<int, std::__1::less<int>, std::__1::allocator<int> >::~set()'
prog.cc:(.text._Z1fIiEvv[_Z1fIiEvv]+0x8e): undefined reference to `std::__1::set<int, std::__1::less<int>, std::__1::allocator<int> >::~set()'
/usr/bin/ld: prog.exe: hidden symbol `_ZNSt3__13setIiNS_4lessIiEENS_9allocatorIiEEED1Ev' isn't defined
/usr/bin/ld: final link failed: Bad value
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
Exit Code:
1