我在debug编译模式下编译完全成功,而且可以执行;但我在release模式下编译,就会出现下面的信息,而且不能执行.请问到底是什么原因呢?有哪位知道?
Linking...
LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REFGamePort.exe - 0 error(s), 2 warning(s)

解决方案 »

  1.   

    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 is not needed for execution of the image.You may want to consider removing references to dynamic-link library to speed up the build.Other occurences of this warning can occur if an unused function in your code references a .dll export that the linker has discarded. Use /VERBOSE to see which of your functions the linker is discarding and then remove them from your code.
      

  2.   

    小弟刚刚接触VC和Windows编程,不是很明白你的意思呀!能不能说的再直接点,谢谢!
      

  3.   

    没有使用的动态链接库会在编译开关/OPT:REF的作用下被忽略掉。这个问题可以不用管,只是编译器提示你而已。换句话说,声明了不必要的动态链接库。