VS2008 RTM - LNK1000: Internal error during IMAGE::BuildImage - by djp952-ny

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 317765 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 12/14/2007 10:04:20 PM
Access Restriction Public


I have run into an LNK 1000 error when compiling some C++/CLI code under the VC2008 RTM compiler.  This code compiled without error on VC2005.  The error is related to having the /Ox Full Optimization option enabled, and a number of elements in the code itself.

The code I've attached/pasted in here is extremely pared down and modified for simplicity, to the point where doing anything else will make the problem go away.  Sorry I can't be more specific than that, all of the elements you see in the code apparently need to be in play for this to happen.  The mslcr::lock, the throw, the return value type of "T", and surprisingly enough, the member variable all must be present.

Also of note is that I have this issue with all three platform compilers (x86, x64 and Itanium).
Sign in to post a comment.
Posted by Microsoft on 1/24/2008 at 12:00 PM
We have found the source of the problem, and the fix will be distributed in the next Service Pack. Until then, you may need to compile without the /Ox option. Thanks once again for taking the time to send us feedback.

Posted by Dean726 on 12/17/2007 at 8:53 AM
We are seeing the same thing - it is holding up our migration to VS2008.
Posted by Microsoft on 12/16/2007 at 5:38 PM
Thanks for your feedback. We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team