由於某種奇怪的原因,我無法在QMake中使用示波器進行工作。下面是我的項目文件中的一些代碼:QMake:示波器如何工作?
debug {
QMAKE_CXXFLAGS_DEBUG += -g3 -O0
message ("Some debug output")
}
release {
DEFINES += QT_NO_DEBUG
DEFINES += QT_NO_DEBUG_OUTPUT
message ("No debug output")
}
但是,當我在調試模式下編譯它,這裏的gcc命令行,我得到:
g++ -c -g -g3 -O0 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DLIBPROVERIM_LIBRARY -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DWINDOWS -DQT_DLL -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\2010.05\qt\include\QtCore" -I"c:\Qt\2010.05\qt\include\QtNetwork" -I"c:\Qt\2010.05\qt\include\QtGui" -I"c:\Qt\2010.05\qt\include\QtXml" -I"c:\Qt\2010.05\qt\include\QtSql" -I"c:\Qt\2010.05\qt\include" -I"c:\Qt\2010.05\qt\include\ActiveQt" -I"debug" -I"..\proverim" -I"." -I"c:\Qt\2010.05\qt\mkspecs\win32-g++" -o debug\PForm.o ..\proverim\PForm.cc
請注意,我試圖清理我的項目,以及手動刪除makefile。現在爲什麼需要兩個範圍的定義?另外,我沒有看到任何消息,他們應該在哪裏?
我沒有提到:我的平臺是使用Qt Creator 2.0.1和Qt 4.7.0的MS Windows XP。 – Septagram 2010-12-13 11:23:35