If you are completely new to using Visual Studio, there is a major chance you will get this “failure during conversion to COFF” when you try to compile your code for the first time. This problem can easily be solved in five simple steps so follow the instructions below.
Steps to fix this error
Step 1: On the top menu, click on project then the last option in the drop down menu “name” properties
Step 2: Expand the “Configuration Properties” tab and click on “Linker”
Step 3: Click on the “Enable Incremental Linking” tab and select “No(/INCREMENTAL:NO)
Step 4: Click on “Apply” then “Ok”
Step 5: The error is now fixed and your project will now compile and run