如何判断是linux/windows库,module或程序debug还是release(转)

linux:
readelf -S xxx.a |grep "\.debug*"
如果有输出, 是debug, 没有是release 
 
 
windows:
dumpbin /DEPENDENTS xx.dll, 结果输出中有MSVCRTD.dll的是debug版本. 为了脚本自动判断, 可用powergrep等工具自动分拣. .lib和我们的编译选项有关, 通过dumpbin /HEADERS 也可以判断出来, 具体要看编译选项了.
--------------------- 
作者:legendmaker 
原文:https://blog.csdn.net/legendmaker/article/details/10491537 

猜你喜欢

转载自blog.csdn.net/f120854632/article/details/87370329
今日推荐