title: manually link standard library in MinGW
body: <p>I had some trouble getting MinGW to recognise libraries for CSFML. I've had to manually link each library using the linker. Now I dont have the standard library that gets linked automatically from a simple gcc call.</p>
  
  <pre><code>bbroo@DESKTOP-1F1J3SM ~/Shaders
  $ ld shaders.o libcsfml-system.a libcsfml-window.a libcsfml-graphics.a csfml-system-2.dll csfml-window-2.dll csfml-graphics-2.dll
  shaders.o:shaders.c:(.text+0x10): undefined reference to `__main'
  shaders.o:shaders.c:(.text+0x4bc): undefined reference to `sleep'
  </code></pre>
  
  <p>What is the name of the standard library in MinGW and how do I link to it in LD?</p>
  
  <p>I know this doesnt answer the question, but compiling with this works:</p>
  
  <pre><code>gcc shaders.c libcsfml-system.a libcsfml-window.a libcsfml-graphics.a csfml-system-2.dll csfml-window-2.dll csfml-graphics-2.dll
  </code></pre>