Скачал с оф. сайта SDL 1.2, добавил себе все хедеры, добавил библиотеки, при компиляции: Code: #include <iostream> #include <stdio.h> #include "SDL.h" using namespace std; int main() { if (SDL_Init(SDL_INIT_VIDEO) < 0) { printf("Unable to initialize SDL", SDL_GetError()); } SDL_Surface *screen; screen = SDL_SetVideoMode(1366, 768, 32, SDL_HWSURFACE | SDL_DOUBLEBUF); if (screen == NULL) { printf("Unable to set 1366x768 video format", SDL_GetError()); } SDL_Quit(); return 0; } Получаю ошибки: Code: obj\Debug\main.o || In function `Z8SDL_mainv':| E:\projects\SDL2\main.cpp |9| undefined reference to `SDL_Init'| E:\projects\SDL2\main.cpp |10| undefined reference to `SDL_GetError'| E:\projects\SDL2\main.cpp |13| undefined reference to `SDL_SetVideoMode'| E:\projects\SDL2\main.cpp |15| undefined reference to `SDL_GetError'| E:\projects\SDL2\main.cpp |17| undefined reference to `SDL_Quit'| c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16'| В чем может быть проблема?