title: gcc/g++ using linkerflag "-lSDL2"
body: <p>acordingly to lazyfoos sdl tutorial 
  <a href="https://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/cli/index.php" rel="nofollow noreferrer">https://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/cli/index.php</a> 
  i setup sdl2. (and it runs with the given Terminal command) 
  "g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL"</p>
  
  <p>i cant remember the-lsdl2 flag and i don't know why i have to use it.
  i also cant comprehend why gcc already know a SDL realatet option like -lsdl2.</p>
  
  <p>how do people know they have to use this flag? i cant find anything usefull on this, people seem to just take it as a fact and tutorials didn't tell why to do so.</p>
  
  <p>hope someone have time for this, i would be glad if i could gain knowledge to set up other libaries by my self next time</p>