我正在尝试编译以下具有标头的代码:
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
但是在运行以下生成文件后:
g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image
我收到以下错误:
fatal error: SDL2_image/SDL_image.h: No such file or directory
#include <SDL2_image/SDL_image.h>
有什么建议么?不完全确定我安装的 SDL_image。我在 Ubuntu 上运行它。