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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. code generation failed

code generation failed

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncsharpvisual-studioai-coding
3 Posts 3 Posters 0 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.
  • R Offline
    R Offline
    raju_shiva
    wrote on last edited by
    #1

    hi all, I dont know wheither its the right forum for this question.But if any one have any idea please help me. I have installed Visual studio 2005 and trying to build the project which is already running fine in another PC. But i am getting this error when i build it in new machine.

    Error 210 fatal error LNK1257: code generation failed

    How can i solve it Thanks Raj

    N R 2 Replies Last reply
    0
    • R raju_shiva

      hi all, I dont know wheither its the right forum for this question.But if any one have any idea please help me. I have installed Visual studio 2005 and trying to build the project which is already running fine in another PC. But i am getting this error when i build it in new machine.

      Error 210 fatal error LNK1257: code generation failed

      How can i solve it Thanks Raj

      N Offline
      N Offline
      Niklas L
      wrote on last edited by
      #2

      MSDN on LNK1257[^]: When compiling with /GL, the linker failed to perform code generation. Investigate any compiler diagnostics that have been emitted and try to remedy them. Do you have an otherwise clean build? You should set the warning level to maximum. Try /W4 or even /Wall.

      home

      1 Reply Last reply
      0
      • R raju_shiva

        hi all, I dont know wheither its the right forum for this question.But if any one have any idea please help me. I have installed Visual studio 2005 and trying to build the project which is already running fine in another PC. But i am getting this error when i build it in new machine.

        Error 210 fatal error LNK1257: code generation failed

        How can i solve it Thanks Raj

        R Offline
        R Offline
        rp_suman
        wrote on last edited by
        #3

        Once try creating some new project of same type(SDI/MDI/Dialog) of your application and try compiling it. If the above test ok then, There can be many possibilities: Try clean & rebuild of your project. One reason could be compiler runs out of space - If your project size is very big, try splitting your project into smaller modules and compile. Check if there is any call to macro(#define) is done inside any destructor etc.. Regards,

        -- "Programming is an art that fights back!"

        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