LINK : warning LNK4089: all references to "GDI32.dll" discarded by /OPT:REF虽然不影响运行,可是我还是想知道是怎么回事。

解决方案 »

  1.   

    Linker Tools Warning LNK4089
    all references to "dynamic-link library" discarded by /OPT:REFThe linker discarded all packaged functions that referenced exports in dynamic-link library. As a result, dynamic-link library and its import library are unneeded.
      

  2.   

    即该动态库没有链接到程序中,因为对该动态库所有的调用都没有被编译(被优化掉),
    一般是在release版本中才出现,因为并没有调用该动态库,所以不影响运行