Uninstall the version of dev c++ that is causing compilatio/builde errors ...and thereafter install the portable versionw which be downloaded from https://sourceforge.net/projects/orwelldevcpp/ ...I had the same problem and it was fixed after installing the portable version.
Uninstall the one and install the portable version https://sourceforge.net/projects/orwelldevcpp/ , I had the same proble and was fixed after installing the portable version.