Hi all,

I am not sure if this is due to QtCreator or gcc, but the error messages are split on many lines.
Therefore, in the build issues, the same error does appear on 3 lines.

Here is an example with one Warning (line 35) and one error (line 37):
/35    unsigned int ffff;
36     //    QTabWidget*    pTabWidget = tabWidget(pTabParent);
37    if (pTabWidget != NULL)/

_Gcc output:_
/TabBase.cpp: In member function `void CTabBase::setTabTitle(QWidget*, const QString&)':
TabBase.cpp:37: `pTabWidget' undeclared (first use this function)
TabBase.cpp:37: (Each undeclared identifier is reported only once for each function it appears in.)
TabBase.cpp:35: warning: unused variable `unsigned int ffff'/

_Build issues:_
cf snapshot.
The error is displayed on 3 lines (NOT OK)
The warning is displayed on 1 line (OK)


_My question is:_
-is there an option for gcc to put error message on the same line (I already tried to find something, but nothing found) -is there a way for QtCreator to recognize that this is the same error and to put it on the same line like: /TabBase.cpp:37: In member function `void CTabBase::setTabTitle(QWidget*, const QString&)': `pTabWidget' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.)/


For information, my configuration is as follows:
_.gcc version:_ 3.2.3  (i know it's quite old)
_.gcc command:_ g++32 -c -pipe -fmessage-length=0 -O2 -D_REENTRANT -Wall -W -fPIC -DTRACE_ENABLED -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED .....
_.QtCreator version:_ 2.3.81 (custom build)


Best Regards
Dini Chillet

<<attachment: Screenshot-TabBase.cpp.png>>

<<attachment: dini_chillet.vcf>>

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to