Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LNK1000: Internal error during IMAGE::BuildImage

I have a problem with linking in VC++ 2010. When I compile in the debug mode it's ok, but in the release mode I regular receive the error "LNK1000: Internal error during IMAGE::BuildImage".

What am I doing wrong?

like image 266
T_T Avatar asked May 06 '12 07:05

T_T


2 Answers

It began work as soon as I have changed "Whole program optimization" option from "Use Link Time Code Generation" to "Profile Guided Optimization-Instrument".

like image 66
T_T Avatar answered Oct 11 '22 11:10

T_T


I encountered the same error. The problem in my case was that I was "playing" with the configuration properties (Project Properties -> Configuration Properties -> General)

The 'Configuration Type' of the project was 'Dynamic Library (.dll)', but the 'Target Extension' was .lib instead of .dll.

like image 22
Mugurel Avatar answered Oct 11 '22 12:10

Mugurel