SeventhHelix / Connect-Four-SDL

A Connect Four game in C++ using SDL for interaction, sound, and graphics
8 stars 3 forks source link

Compiler Error -while 'make' #1

Open bhaveshmunot1 opened 7 years ago

bhaveshmunot1 commented 7 years ago
$ make
g++ -Wall -MMD -lSDL   -c -o connectFour.o connectFour.cpp
g++ -Wall -MMD -lSDL   -c -o board.o board.cpp
g++ -Wall -MMD -lSDL   -c -o interpreter.o interpreter.cpp
interpreter.cpp: In member function ‘void Interpreter::startGame()’:
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_UNKNOWN’ not handled in switch [-Wswitch]
                     switch(event.key.keysym.sym) {
                           ^
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_FIRST’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_BACKSPACE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_TAB’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_CLEAR’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RETURN’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PAUSE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_ESCAPE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_EXCLAIM’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_QUOTEDBL’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_HASH’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_DOLLAR’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_AMPERSAND’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_QUOTE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LEFTPAREN’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RIGHTPAREN’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_ASTERISK’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PLUS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_COMMA’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_MINUS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PERIOD’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_SLASH’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_0’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_1’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_2’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_3’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_4’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_5’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_6’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_7’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_8’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_9’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_COLON’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_SEMICOLON’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LESS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_EQUALS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_GREATER’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_QUESTION’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_AT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LEFTBRACKET’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_BACKSLASH’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RIGHTBRACKET’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_CARET’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_UNDERSCORE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_BACKQUOTE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_a’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_b’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_c’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_d’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_e’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_f’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_g’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_h’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_i’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_j’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_k’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_l’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_m’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_n’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_o’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_p’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_q’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_r’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_s’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_t’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_u’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_v’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_w’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_x’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_y’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_z’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_DELETE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_0’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_1’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_2’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_3’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_4’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_5’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_6’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_7’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_8’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_9’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_10’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_11’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_12’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_13’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_14’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_15’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_16’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_17’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_18’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_19’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_20’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_21’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_22’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_23’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_24’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_25’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_26’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_27’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_28’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_29’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_30’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_31’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_32’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_33’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_34’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_35’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_36’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_37’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_38’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_39’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_40’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_41’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_42’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_43’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_44’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_45’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_46’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_47’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_48’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_49’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_50’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_51’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_52’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_53’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_54’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_55’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_56’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_57’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_58’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_59’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_60’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_61’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_62’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_63’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_64’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_65’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_66’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_67’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_68’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_69’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_70’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_71’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_72’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_73’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_74’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_75’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_76’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_77’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_78’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_79’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_80’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_81’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_82’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_83’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_84’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_85’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_86’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_87’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_88’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_89’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_90’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_91’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_92’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_93’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_94’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_WORLD_95’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP0’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP1’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP2’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP3’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP4’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP5’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP6’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP7’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP8’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP9’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_PERIOD’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_DIVIDE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_MULTIPLY’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_MINUS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_PLUS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_ENTER’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_KP_EQUALS’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_UP’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_INSERT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_HOME’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_END’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PAGEUP’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PAGEDOWN’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F1’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F2’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F3’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F4’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F5’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F6’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F7’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F8’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F9’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F10’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F11’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F12’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F13’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F14’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_F15’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_NUMLOCK’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_CAPSLOCK’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_SCROLLOCK’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RSHIFT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LSHIFT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RCTRL’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LCTRL’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RALT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LALT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RMETA’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LMETA’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LSUPER’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_RSUPER’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_MODE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_COMPOSE’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_HELP’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_PRINT’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_SYSREQ’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_BREAK’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_MENU’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_POWER’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_EURO’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_UNDO’ not handled in switch [-Wswitch]
interpreter.cpp:89:27: warning: enumeration value ‘SDLK_LAST’ not handled in switch [-Wswitch]
interpreter.cpp:72:10: warning: unused variable ‘exec’ [-Wunused-variable]
     char exec;
          ^
g++ -Wall -MMD -lSDL connectFour.o board.o interpreter.o -o connectFour
interpreter.o: In function `Interpreter::Interpreter()':
interpreter.cpp:(.text+0x2b): undefined reference to `SDL_Init'
interpreter.cpp:(.text+0x3a): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x47): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x61): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x6e): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x88): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x95): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0xaf): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0xbc): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0xd6): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0xe3): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0xfd): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x10a): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x124): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x131): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x14b): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x158): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x172): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x17f): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x199): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x1a6): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x1c0): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x1cd): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x1ea): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x1f7): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x2ff): undefined reference to `SDL_SetVideoMode'
interpreter.cpp:(.text+0x319): undefined reference to `SDL_WM_SetCaption'
interpreter.o: In function `Interpreter::startGame()':
interpreter.cpp:(.text+0x3cd): undefined reference to `SDL_PollEvent'
interpreter.cpp:(.text+0x4a5): undefined reference to `SDL_PollEvent'
interpreter.o: In function `Interpreter::~Interpreter()':
interpreter.cpp:(.text+0x5b1): undefined reference to `SDL_FreeSurface'
interpreter.cpp:(.text+0x5b6): undefined reference to `SDL_Quit'
interpreter.o: In function `Interpreter::printGame()':
interpreter.cpp:(.text+0x5e9): undefined reference to `SDL_Flip'
interpreter.o: In function `Interpreter::loadImage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
interpreter.cpp:(.text+0x625): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x632): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x651): undefined reference to `SDL_FreeSurface'
interpreter.o: In function `Interpreter::applySurface(int, int, SDL_Surface*, SDL_Surface*)':
interpreter.cpp:(.text+0x6a8): undefined reference to `SDL_UpperBlit'
interpreter.o: In function `Interpreter::endGameApply()':
interpreter.cpp:(.text+0x8e9): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x8f6): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x942): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x94f): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x971): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x97e): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x99d): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x9aa): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0x9c9): undefined reference to `SDL_RWFromFile'
interpreter.cpp:(.text+0x9d6): undefined reference to `SDL_LoadBMP_RW'
interpreter.cpp:(.text+0xa24): undefined reference to `SDL_Flip'
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'connectFour' failed
make: *** [connectFour] Error 1

Though in the beginning there are warning, at the end hitting an error. Please help in resolving that.

SeventhHelix commented 7 years ago

It looks like a lot of undefined references to SDL data.

Have you installed SDL? It's been ~5 years since I've last compiled this project, so SDL may have changed in the meantime as well, causing compatibility issues.

bhaveshmunot1 commented 7 years ago

Yes, I did install SDL.

Any way to compile this even if SDL is changed?

SeventhHelix commented 7 years ago

The version of SDL I used would've been from 2012. You could try using an older version, but I'm not sure what's all changed since I made this project.

I don't have access to the machine I used to write/compile this, so I'm not able to give much more info on the original environment it was built in.

My only suggestions I can make are what I would do to debug. Clone the code, strip out any non-necessary pieces of code and narrow it down to what's breaking. Also, try running the SDL examples on the webpage mentioned in the readme, if you're able to run those then you know it's an incompatibility with the older code, and if it doesn't then there's probably something wrong with your environment.