<sub> TL; DR: sub>
,
- (
#include <*.h>) include , - lib (
*.lib, , ) , - (
*.dll), , .lib ( VS , )
#include <SDL.h>, , , . , , , . , ++ Include Visual Studio 2012 ( 2011 2010). SDL.h include, - . , <SDL/SDL.h> - .
#include . . , , , , ( .lib), , ( .dll, , .lib, ).
, include . , #include <SDL.h>, , , SDL.h SDL.lib ( , SDL.dll). , #pragma, , . ScottMcP-MVP, SDL.lib Project Properties->Configuration Properties->Linker->Input->Additional Dependencies. unresolved external, , , . - SDL.h SDL.lib SDL.lib .
, , , , , "" SDL_Init, , / -- , .
, /recap, GUI /. , , :
./compiler -I/path/to/my/includes -L/path/to/my/lib -lmylibrary.lib mycode.cpp -o myexecutable.exe
mycode.cpp #include <mylibrary.h>. , ./compiler , . :
./compiler -I/path/to/my/includes mycode.cpp -o mycompiledcode.o
./linker -L/path/to/my/lib -lmylibrary.lib mycompiledcode.o -o myexecutable.exe
, SDL.dll . , , Windows. . linux rpath ( ). application configuration incorrect, dll , , dll . dll - .
. OpenGL - !
[EDIT]
x32 x64 lib, . , x32, double ram, . OpenGL x64, , , .
Additional Dependencies - , "SDL.lib". Visual Studio. SDL, .
_main, , * spit * SDL . #include <SDL.h> #undef main (, #ifdef ):
#include <SDL.h> //my include is <SDL2/SDL.h>, as I have both an SDL and SDL2 dir in my include path
#ifdef main
#undef main
#endif
: </> "/" - #include <filename> #include " " ?