Próbowałem zainstalować SDL, ściągnąłem potrzebne pliki, dodałem do odpowiednich folderów ale wyskoczył mi taki błąd:
1>------ Build started: Project: SSDL, Configuration: Debug Win32 ------
1>main.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in function _SDL_main
1>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Documents and Settings\Mirek\Moje dokumenty\Visual Studio 2010\Projects\Moje projekty\SSDL\Debug\SSDL.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Kod programu:
#include <sdl.h>
int main( int argc, char * args[] )
{
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Quit();
return 0;
}