Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <SDL2/SDL.h>
- static const int width = 320;
- static const int height = 180;
- int main(int argc, char **argv)
- {
- SDL_Init(SDL_INIT_VIDEO);
- SDL_Window *window = SDL_CreateWindow("Hello, SDL2", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL);
- SDL_DestroyWindow(window);
- SDL_Quit();
- return 0;
- }
- vke@komputilo:~/dev/MiaLudo/source$ gcc -g main.c -o ../ludo
- /tmp/ccfVU5ua.o: In function `main':
- /home/vke/dev/MiaLudo/source/main.c:11: undefined reference to `SDL_Init'
- /home/vke/dev/MiaLudo/source/main.c:13: undefined reference to `SDL_CreateWindow'
- /home/vke/dev/MiaLuvke@komputilo:~/dev/MiaLudo/source$ gcc -g main.c -o ../ludo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement