我正在使用提供的.pro文件,并且由于某种原因,它被配置为使得调试库没有在其库名称后附加"d".是什么导致这种情况以及如何恢复它?
例如QtGui4.dll(发布)和QtGuid4.dll(调试)
谢谢.
将其添加到.pro文件中,它将附加_debug for mac和d for windows debug build.
CONFIG += debug_and_release
CONFIG(debug, debug|release) {
mac: TARGET = $$join(TARGET,,,_debug)
win32: TARGET = $$join(TARGET,,,d)
}
Run Code Online (Sandbox Code Playgroud)
CONFIG(xx, yy)此函数可用于测试置于CONFIG变量中join(variablename, glue, before, after) 的变量.使用glue之前和之后加入variablename
的值.
| 归档时间: |
|
| 查看次数: |
3628 次 |
| 最近记录: |