It’s a common error when you compile C++-projects with Visual Studio 2010. Ift happens when 2 version of Visual Studio are installed on same PC (like 2010 and 2012) and cause conflict between two versions of cvtres.exe.
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
To fix it, go to the bin directory of Visual Studio 2010 (c:Program Files (x86)Microsoft Visual Studio 10.0VCbin or something like this) and rename cvtres.exe to cvtres0.exe.
Don’t worry, it willn’t break linker of 2010.