LINK : warning LNK4089: /OPT:REF 已丢弃所有对“OLEAUT32.dll”的引用
LINK : warning LNK4089: /OPT:REF 已丢弃所有对“USER32.dll”的引用
原因:The linker discarded all packaged functions that referenced exports in dynamic-link library. As a result, dynamic-link library and its import library are unneeded.
解决方法一:在Project-->Setting->Link选项中添加"/OPT:NOREF ".
解决方法二:使用"#pragma warning(disable:4089)"屏蔽该warning.