Linking SDL2 - CLion - Ubuntu 16.04 - G++
问题 Background info As the title says, I am on Ubuntu 16.04 using CLion and G++, and I am unable to link SDL2. SDL2.h is found in the project at External Libraries/Header Search Paths/include/SDL2 . This seems to link to /usr/include/SDL2 . So, with the header file found, I can #include <SDL2/SDL.h> without any issues. Yet, when I try to make use of SDL2 with something like, SDL_Init( SDL_INIT_EVERYTHING ) , I get an undefined reference . If I compile from terminal with g++ main.cpp -lSDL2 -o