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 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.

解决方案 »

  1.   

    谢谢你的回答,不过我还是没有解决问题,我采用的是静态连编,LINK中也没有lib文件。
    希望大家继续帮忙!
      

  2.   

    另外,我在另两台电脑上(一台一直运行正常,另一台format c:后重装WIN98+VC,均保证无病毒),打开旧程序和新建工程进行发行版的静态连编,问题依旧。原来用于开发和编译的VC是就是现在使用的VC。我在Project->Settings...->Win32 Release->Link选项卡下,选中Link incrementally后,静态编译时没出警告,但编译出的EXE文件大得很,有600多K。如何解决我的问题了?
      

  3.   

    如果静态链接,程序是会变很大,大小应该是差不多,你那个警告错误是没有关系的,不用管的,使用动态链接好了,然后再把MFC的动态库也拷贝过去就要可以了。