manually link standard library in MinGW
问题 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. 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