[vs2008] fatal error LNK1000: Internal error during IncrBuildImage
Bug of vs2008,
the solved way declared by MS: http://support.microsoft.com/kb/948127
project properties-> Configuration Properties -> Linker -> General
change "Enable Incremental Linking"
default: Yes(/INCREMENTAL), change to: No(/INCREMENTAL:NO)
What is "Incremental Linking" ?
The /INCREMENTAL option controls how the linker handles incremental linking.
An incrementally linked program is functionally equivalent to a program that is nonincrementally linked.
However, because it is prepared for subsequent incremental links, an incrementally linked executable (.exe) file or dynamic-link library (DLL):
1) Is larger than a nonincrementally linked program because of padding of code and data. (Padding allows the linker to increase the size of functions and data without recreating the .exe file.)
2) May contain jump thunks to handle relocation of functions to new addresses.
* Note: To ensure that your final release build does not contain padding or thunks, link your program nonincrementally.
When " /INCREMENTAL" option is selected, the linker issues a warning if it cannot link incrementally, and then links the program nonincrementally.
Certain options and situations override /INCREMENTAL.
Most programs can be linked incrementally. However, some changes are too great, and some options are incompatible with incremental linking.