Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. LNK1123: failure during conversion to COFF: file invalid or corrupt

LNK1123: failure during conversion to COFF: file invalid or corrupt

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestionlearning
7 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    forkbomber
    wrote on last edited by
    #1

    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?

    A L 3 Replies Last reply
    0
    • F forkbomber

      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?

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      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.

      F 1 Reply Last reply
      0
      • A Albert Holguin

        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.

        F Offline
        F Offline
        forkbomber
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • F forkbomber

          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?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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?

          speaking as ...

          F 1 Reply Last reply
          0
          • L Lost User

            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?

            speaking as ...

            F Offline
            F Offline
            forkbomber
            wrote on last edited by
            #5

            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.

            L 1 Reply Last reply
            0
            • F forkbomber

              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.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              speaking as ...

              1 Reply Last reply
              0
              • F forkbomber

                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?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                You know the dsp and dsw files are just text and can be edited to clean up a project? Could be you have some ting bad in one of them from what you are saying.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups