Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.1 20200129 (experimental)

Options
Warnings
Boost 1.72.0
C++2a(GNU)
-pedantic-errors

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a -pedantic-errors
prog.cc: In constructor 'IBase::IBase()':
prog.cc:5:13: warning: pure virtual 'virtual void IBase::foo()' called from constructor
    5 |         foo();//"Прямой" вызов. Ошибка линковки.
      |             ^
/tmp/ccT8hnpm.o: In function `IBase::IBase()':
prog.cc:(.text._ZN5IBaseC2Ev[_ZN5IBaseC5Ev]+0x20): undefined reference to `IBase::foo()'
collect2: error: ld returned 1 exit status
Exit Code:
1