SDL 2.0 won't initialize. Error: “Failed to connect to the Mir Server”
问题 I am running Ubuntu 14.04, and using Eclipse CDT. In my program, I am trying to initialize SDL and if it doesn't initialize then output the error, but SDL_GetError() returns "Failed to connect to the Mir Server". I am sure SDL is installed correctly since I can successfully initialize SDL on another project. These are the libraries I am using: http://i.imgur.com/SS1mjzQ.png #include <SDL2/SDL.h> #include <iostream> int main(int argc, char* args[]) { if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { std