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.
这个警告是告诉你在link里包含了user32.lib 也就是说你调用user32.dll!但你却在工程里没有用一个user32.dll的export funtion!
解决方法一:在Project-->Setting->Link选项中添加"/OPT:NOREF ".
解决方法二:使用"#pragma warning(disable:4089)"屏蔽该warning.
时间: 2024-11-14 12:00:02