Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wnon-virtual-dtor

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wnon-virtual-dtor
prog.cc:9:4: warning: 'B' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
   ~B();
   ^
1 warning generated.
/tmp/prog-2b3c10.o: In function `main':
prog.cc:(.text+0x16): undefined reference to `B::~B()'
/tmp/prog-2b3c10.o: In function `B::B()':
prog.cc:(.text._ZN1BC2Ev[_ZN1BC2Ev]+0x6): undefined reference to `vtable for B'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
Exit Code:
1