Language
C++
Compiler
gcc HEAD 9.0.0 20180919 (experimental)
Options
Warnings
Boost 1.67.0
C++2a(GNU)
no pedantic
Raw compiler options
-O3
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a -O3
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20180919 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a -O3
prog.cc: In constructor 'Interface::Interface()':
prog.cc:5:22: warning: pure virtual 'virtual void Interface::fun() const' called from constructor
5 | Interface(){ fun(); }
| ^
/tmp/ccWMVIWG.o: In function `main':
prog.cc:(.text.startup+0x13): undefined reference to `Interface::fun() const'
collect2: error: ld returned 1 exit status