Seems like it can't find the MinGW libraries.
Click on Tools -> Compiler Options
In the directory tab, right click Libraries
and change to the MinGW lib directory. In this example, it was C:\MinGW\lib
This might happen if you uninstall, re-install, or upgrade MinGW.