What cause compiling error: LNK 1257 : code generation failed?


  • Hi Everyone,

    I am wondering what cases the error, 'fatal error LNK 1257: code generation failed"? I created a C++ static library using VS2008 and also prepared a main routine to test it. It seems works just fine. So I copied the code to another directory so that I can add other C++ libraries and start building my application based on this code. Strangely, this time this error occured (while I am compiling the same code, not even adding anything yet), I follw a suggestion I found on this Forum: logoff and re-start the system. It did not n=help. Any explanations? suggestions? Thanks for your help.

    Tom Lin 
    Wednesday, November 11, 2009 9:32 PM

All replies