Looks like you have optimization turned on. /OPT:REF option tells the linker to eliminate functions and data that are never referenced. Try to remove shell32.lib from library list in your project settingsor
#pragma warning( disable:4089 )