LINK : warning LNK4089: all references to “ODBC32.dll” discarded by /OPT:REF
LINK : warning LNK4089: all references to “ADVAPI32.dll” discarded by /OPT:REF
LINK : warning LNK4089: all references to “SHELL32.dll” discarded by /OPT:REF
LINK : warning LNK4089: all references to “comdlg32.dll” discarded by /OPT:REF
解释:你没有引入xxx.dll中的任何东西,链接器做优化不再链接他,这有助于减小可知性文件的体积。
解决方法:其实不用管这种警告,如下方法可以去除警告:在project–>project setting–>link(tab)–>Project Options
最后面加上/opt:noref可去除警告。