LNK1123: failure during conversion to COFF: file invalid or corrupt
-
Hello! I am currently working on a mid-scale project and compiling and linking worked perfect until now. I played around with my resource files and the linker won't eat my object files anymore:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I already deleted the resource file, the resource header and made them new about 5 times, I removed all possibly deprecated object and pch files and restartet Visual Studio countless times, but it still won't work. Any ideas?
-
Hello! I am currently working on a mid-scale project and compiling and linking worked perfect until now. I played around with my resource files and the linker won't eat my object files anymore:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I already deleted the resource file, the resource header and made them new about 5 times, I removed all possibly deprecated object and pch files and restartet Visual Studio countless times, but it still won't work. Any ideas?
What were you doing to what resource file? In any case, considering what you've already tried... you can always start a new project and transfer your code over.
-
What were you doing to what resource file? In any case, considering what you've already tried... you can always start a new project and transfer your code over.
Albert Holguin wrote:
What were you doing to what resource file?
I don't remember exactly what I did, but I don't think that matters because I've deleted the old resource file and made a new one a dozen times.
-
Hello! I am currently working on a mid-scale project and compiling and linking worked perfect until now. I played around with my resource files and the linker won't eat my object files anymore:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I already deleted the resource file, the resource header and made them new about 5 times, I removed all possibly deprecated object and pch files and restartet Visual Studio countless times, but it still won't work. Any ideas?
Are you certain this is because of your resource changes? Have you tried doing a clean of your project, deleting all object files and rebuilding from scratch?
-
Are you certain this is because of your resource changes? Have you tried doing a clean of your project, deleting all object files and rebuilding from scratch?
Yeah. Because when I exclude the resource file from the project, everything works as expected. As soon as I add a resource file (even an empty one) it starts doing that. Edit: By empty I mean that no icons, bitmaps et cetera are in the resource, the file itself contains the default text.
-
Yeah. Because when I exclude the resource file from the project, everything works as expected. As soon as I add a resource file (even an empty one) it starts doing that. Edit: By empty I mean that no icons, bitmaps et cetera are in the resource, the file itself contains the default text.
Never seen that before, I can only assume there is some corruption elsewhere on your system. Looking at some of the Google finds for that Link error I noticed a number that suggested either a system restore, or the use of a special recovery tool or both. you may wish to research some of those suggestions yourself. As a last resort you can always try the Microsoft Development Q&A - I don't have the address but I have used it in the past and got some useful feedback.
-
Hello! I am currently working on a mid-scale project and compiling and linking worked perfect until now. I played around with my resource files and the linker won't eat my object files anymore:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I already deleted the resource file, the resource header and made them new about 5 times, I removed all possibly deprecated object and pch files and restartet Visual Studio countless times, but it still won't work. Any ideas?