Error message - VS2010 and LNK1123/COFF
During the compilation of a TwinCAT C++ module, the error message
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
indicates that a Visual Studio 2010 is being used, but without Service Pack 1, which is required for TwinCAT C++ modules.
Download the installation program for the service pack from Microsoft.