c - Undefined reference SDL - Probably bad command to compile -


I am trying to create my SDL 2.0 hello world:

  GCC-O Test Test.c -lmingw32 -lSDL2main -lSDL2 - & gt; SDL_Init undefined reference  

or include it in:

  GCC-ic: \ minidie \ SDL2 -o test test.c -lmingw32 -lSDL2main -lSDL2 - & gt; Still unspecified references  

or this:

  Include in GCC-I "C: \ mingw \ SDL2" -o test test.c - Lmingw32 -lSDL2main -LSDL2 - & gt; No  

or include it in:

  in GCC-IC: \ minidie \ SDL2 -LC: \ minijew \ lib -o test test.c With -lmingw32 -lSDL2main -lSDL2  

or "" .

I can not find an easy-to-read document about how to compile a simple code.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -