警告: warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF。

原因: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。

解决方法1:在Project-->Setting->Link选项中的Object/library modules中添加"/OPT:NOREF "。

解决方法2:使用"#pragma warning(disable:4089)"屏蔽该warning。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-12-23
  • 2022-01-25
  • 2021-08-21
  • 2021-12-18
  • 2021-09-22
  • 2021-10-16
相关资源
相似解决方案