【发布时间】:2017-08-21 00:38:38
【问题描述】:
在Plug & Paint Example 中,.pro 显示以下内容:
LIBS = -Lplugins -lpnp_basictools
if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
mac:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)_debug
win32:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)d
}
对于这种特殊情况,在调试模式下将d 附加到库名称后,pnp_basictools 变为pnp_basictoolsd。但它不能很好地扩展,即:
LIBS = -Lplugins -lplugin_1 -lplugin_2 -lplugin_3
if(!debug_and_release|build_pass):CONFIG(debug, debug|release)
win32:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)d
似乎没有将d 附加到plugin_2 和plugin_3。
那么,我可以要求另一种方法在调试模式下将d 添加到库名称中吗?
here也提到了这个问题。
【问题讨论】: