Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 2 years ago

Language

C++

Compiler

gcc 12.2.0

Options
Warnings
Optimization
Boost 1.81.0
C++2b
no pedantic

Author

anonymous

about 2 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.81.0-gcc-12.2.0/include -std=c++2b
prog.cc: In function 'int main()':
prog.cc:18:3: warning: exception of type 'std::logic_error' will be caught by earlier handler [-Wexceptions]
   18 |   catch (const std::logic_error&) {}  // #4
      |   ^~~~~
prog.cc:17:3: note: for type 'std::exception'
   17 |   catch (const std::exception&) {}    // #3
      |   ^~~~~
/usr/bin/ld: /tmp/ccmsbVmQ.o: in function `main':
prog.cc:(.text.startup+0x5): undefined reference to `f()'
collect2: error: ld returned 1 exit status
Exit Code:
1