首页| 论坛| 消息

回复: 【提问】请问在Windows下使用不编译debug库能使用qDebug()函数吗?
#6 [kytexzy 09-16 19:57]
不行啊,我的程序在Windows里qDebug()就是没有输出,而在Linux里却能输出!
#7 [XChinux 09-16 20:15]
你搜索一下,本版有一个帖子说的就是这个问题,为什么控制台没有输出的问题。
#8 [XChinux 09-16 20:17]
看这个帖子:
http://www.qtcn.org/bbs/read.php?tid=1163
#9 [XChinux 09-16 20:18]
by m31
thank you!
but the methods mentioned above don't work.
i used google to search the answer:
http://www.qtforum.org/thread.php?threadid=3466&sid=7bdc70de5013490f6813ba10a889e924
{
12.10.2004 21:34 Forum: Qt Programming
Hi,
try to use qmake and input the following line
win32:CONFIG += console in the *.pro file.
to tell windows that you have a console app.
Christian
}
i tried and it did work!
#10 [kytexzy 09-17 12:28]
哦,谢一个,原来qDebug()与debug库无关,只要在生成Makefile时用:
qmake "CONFIG+=console"
qDebug()在windows的控制台中就能有输出了。

<< 1 2 3 >> (2/3)

回复 发表
主题 版块