Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190317 (experimental)

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc:2:6: error: 'Chungus' has not been declared
    2 | void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
      |      ^~~~~~~
prog.cc:2:20: error: variable or field 'Draw' declared void
    2 | void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
      |                    ^~~~~~~~
prog.cc:2:20: error: 'Viewport' was not declared in this scope
prog.cc:2:33: error: 'SDL_Renderer' was not declared in this scope
    2 | void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
      |                                 ^~~~~~~~~~~~
prog.cc:2:47: error: 'ren' was not declared in this scope
    2 | void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
      |                                               ^~~
prog.cc:1:14: warning: 'r' defined but not used [-Wunused-variable]
    1 | static float r = 0;
      |              ^
Exit Code:
1