SDL window does not show
This is my code: #include <iostream> #include <SDL2/SDL.h> int main(int argc, const char * argv[]) { SDL_Init(SDL_INIT_VIDEO); SDL_Window *_window; _window = SDL_CreateWindow("Game Engine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 700, 500, SDL_WINDOW_RESIZABLE); SDL_Delay(20000); SDL_DestroyWindow(_window); SDL_Quit(); return 0; } Im working in Xcode. I've downloaded SDL2 and imported the library to the projects build phases. I've tested that the SDL2 works correctly. The problem is that window never shows up. I just get a "spinning-mac-wheel" and then the program quits after the delay