如何判断并检查
rule29:不与不必要的库建立链接.
是这样的:The /OPT option controls the optimizations that LINK performs during a build. Optimizations generally decrease the image size and increase the program speed at a cost of increased link time.
/OPT:REF eliminates functions and/or data that are never referenced while /OPT:NOREF keeps functions and/or data that are never referenced.
在project->settings里面加上/OPT:REF,那么如果有的库如果不被引用,则出编译器warning;反之,则不出warning。
默认情况下;If /DEBUG is specified, the default for /OPT is NOREF (otherwise, it is REF), and all functions are preserved in the image.
debug版本的时候,使NOREF,所以不出warning;如果是release版,则默认是REF,出warning.
rule29:不与不必要的库建立链接.
是这样的:The /OPT option controls the optimizations that LINK performs during a build. Optimizations generally decrease the image size and increase the program speed at a cost of increased link time.
/OPT:REF eliminates functions and/or data that are never referenced while /OPT:NOREF keeps functions and/or data that are never referenced.
在project->settings里面加上/OPT:REF,那么如果有的库如果不被引用,则出编译器warning;反之,则不出warning。
默认情况下;If /DEBUG is specified, the default for /OPT is NOREF (otherwise, it is REF), and all functions are preserved in the image.
debug版本的时候,使NOREF,所以不出warning;如果是release版,则默认是REF,出warning.