SDL2_image not found
问题 I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image I get the following error: fatal error: SDL2_image/SDL_image.h: No such file or directory #include <SDL2_image/SDL_image.h> Any suggestions? Not entirely sure about my installation of SDL_image. I am running this on Ubuntu. 回答1: This problem can be solved through installing libsdl2