#include "SDL.h" #include SDL_Window *window; int main(int argc, char *argv[]) { if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { fprintf(stderr, "there was an error attempting to initilizer SDL"); } // create a display mode SDL_DisplayMode display_mode; // and store in it current display mode settings SDL_GetCurrentDisplayMode(0, &display_mode); // create an sdl window object window = SDL_CreateWindow( "Cool new window", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, display_mode.w, display_mode.h, SDL_WINDOW_RESIZABLE ); printf("hello there"); return(0); }