Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  C语言  >  正文 VC.NET 中编译时的警告_VC技术文章_VC_软件编程

VC.NET 中编译时的警告_VC技术文章_VC_软件编程

发布时间:2018-11-21   编辑:www.jquerycn.cn
jquery中文网为您提供VC.NET 中编译时的警告,VC技术文章,VC,软件编程等资源,欢迎您收藏本站,我们将为您提供最新的VC.NET 中编译时的警告,VC技术文章,VC,软件编程资源

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.   
<clk></clk>这个警告是告诉你在link里包含了user32.lib   也就是说你调用user32.dll!但你却在<nobr oncontextmenu="return false;" onmousemove="kwM(3);" id="clickeyekey3" onmouseover="kwE(event,3, this);" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick="return kwC(event,3)" onmouseout="kwL(event,this)" target="_blank">工程</nobr>里没有用一个user32.dll的export   funtion! 

 
  解决方法一:在Project-->Setting->Link选项中添加"/OPT:NOREF   ".  
   
  解决方法二:使用"#pragma   warning(disable:4089)"屏蔽该warning.   
   

[关闭]