[email protected] wrote: > Hi, > > I have several main.cpp files in my tree (one for each > program), and whenever there is a compilation warning or > error listed in the Build Issues pane it claims it cannot > find the file.
Hi, The logic to find the absolute file path is implemented in AbstractMakeStep::slotAddToTaskWindow(). Currently it - Tracks the "Entering directory" & "Leaving directory" calls, and tries to find the file in there. This might fail, however, because of locale specific compiler output or parallel / distributed builds. - Checks if the file is unique in the project. Apparently the first step fails for you, while it shouldn't. If you want to look into this yourself, I recommend starting with enabling the debugging for this file (change "bool debug=false" to true at line 46). Regards Kai > Some lines from the Compile Output pane: > > cd mirror_test\ && C:/Qt/2009.05/mingw/bin/mingw32-make -f Makefile > mingw32-make[2]: Entering directory > `C:/Development/EasyScan/Tests/mirror_test' > C:/Qt/2009.05/mingw/bin/mingw32-make -f Makefile.Debug > mingw32-make[3]: Entering directory > `C:/Development/EasyScan/Tests/mirror_test' > g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE > -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SQL_LIB -DQT_XML_LIB > -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT > -I"..\..\..\..\Qt\2009.05\qt\include\QtCore" > -I"..\..\..\..\Qt\2009.05\qt\include\QtGui" > -I"..\..\..\..\Qt\2009.05\qt\include\QtXml" > -I"..\..\..\..\Qt\2009.05\qt\include\QtSql" > -I"..\..\..\..\Qt\2009.05\qt\include" -I"..\..\Libraries\Calibration" > -I"..\..\Libraries\Image" > -I"..\..\..\..\Qt\2009.05\qt\include\ActiveQt" > -I"debug" -I"..\..\..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o > debug\main.o main.cpp main.cpp: In function 'void > saveFloatImage(float*, int, int, > int, const > char*)': > main.cpp:32: error: 'USHRT_MAX' was not declared in this scope > mingw32-make[3]: Leaving directory > `C:/Development/EasyScan/Tests/mirror_test' > mingw32-make[2]: Leaving directory > `C:/Development/EasyScan/Tests/mirror_test' > > Build Issues pane: > 'USHRT_MAX' was not declared in this scope main.cpp 32 > File not found: main.cpp > > If the file name is unique, there is no problem finding the > file and showing it in the editor, whenever the file is not > unique, it fails to find it. > > Regards, > > Robert > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator -- Kai K?hne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B Umsatzsteueridentifikationsnummer: DE 812 845 193 Gesch?ftsf?hrer: Dr. Michael Halbherr, Karim T?htivuori _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
