nafxcwd.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory

My setting:
VC2010 SP1 on Windows 7 64bit
Without any modification of the environmental variables or upgrading VC2010, I hit this error upon rebuild of an old project

nafxcwd.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory

My solution:
1. At project->Properties->Configuration Properties->Linker->Input->Additional Dependencies I added windowscodecs.lib. This is a library under

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib

If you don’t have it, install Windows SDKs

2. Compile the project still hit some errors and recompile builds the project successfully

For details of discussion on this issue see here