Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, May 2007
Problem compiling on Mac OS X after updating to Qt 4.2.3


Message 1 in thread

Hi everyone,

some days ago I updated to Qt 4.2.3 using the binaries provided by
Trolltech after removing all old Qt files. Unfortunately, my app refuses
strictly to be compiled using Xcode. First I get a warning when the
custom shell script is run like: Waring: no relevant classes found. No
output generated.
Then it goes on complaining about: "expected nested-name-specifier
before 'namespace'
expected unqualified id before namespace
expected ';' before namespace" for every class that is being compiled.
Plus there are errors in a ui file like "ISO C++ forbids declaration of
QSpinBox with no type".
I am somehow afraid that I maybe should not have removed my old files
and now the installation is not working properly.
Any hints?
BTW all the above mentioned when compiling main.cpp...

Thanks in advance!!

Christian Rengstl M.A.
Klinik und Poliklinik fÃr Innere Medizin II
Kardiologie - Forschung
UniversitÃtsklinikum Regensburg
B3 1.388
Franz-Josef-Strauss-Allee 11
93053 Regensburg
Tel.: +49-941-944-7230

--
 [ signature omitted ] 

Message 2 in thread

Hi,

I figured out that the error does not depend on Mac OS X as it occurred
too on Windows. Yet I still don't get it, so I hope that somebody might
help me out looking at part of the output:

g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQ
T_NEEDS_QMAIN -I"C:/Qt/4.2.3/include/QtCore"
-I"C:/Qt/4.2.3/include/QtCore" -I"C
:/Qt/4.2.3/include/QtGui" -I"C:/Qt/4.2.3/include/QtGui"
-I"C:/Qt/4.2.3/include/Q
tXml" -I"C:/Qt/4.2.3/include/QtXml" -I"C:/Qt/4.2.3/include" -I"."
-I"C:/Qt/4.2.3
/include/ActiveQt" -I"src\tmp" -I"src\ui\include"
-I"c:\Qt\4.2.3\mkspecs\win32-g
++" -o src\tmp\main.o src\main.cpp
In file included from src\/ui/NewProjectDialogImpl.h:24,
                 from src\/ui/MainWindowImpl.h:24,
                 from src\main.cpp:24:
src\/ui/../project/ProjectStore.h:48: error: expected
nested-name-specifier befo
re "namespace"
src\/ui/../project/ProjectStore.h:48: error: expected unqualified-id
before "nam
espace"
src\/ui/../project/ProjectStore.h:48: error: expected `;' before
"namespace"
src\/ui/../project/ProjectStore.h:48: error: expected unqualified-id
before "nam
espace"
src\/ui/../project/ProjectStore.h:53: error: storage class specified for
field `
debug'
In file included from src\/ui/MainWindowImpl.h:24,
                 from src\main.cpp:24:
src\/ui/NewProjectDialogImpl.h:38: error: expected nested-name-specifier
before
"namespace"
src\/ui/NewProjectDialogImpl.h:38: error: expected unqualified-id before
"namesp
ace"
src\/ui/NewProjectDialogImpl.h:38: error: expected `;' before
"namespace"
src\/ui/NewProjectDialogImpl.h:38: error: expected unqualified-id before
"namesp
ace"
In file included from C:/Qt/4.2.3/include/QtGui/qlistwidget.h:1,
                 from C:/Qt/4.2.3/include/QtGui/QListWidget:1,
                 from src\/ui/include/ui_NewFileDialog.h:23,
                 from src\/ui/NewFileDialogImpl.h:23,
                 from src\/ui/MainWindowImpl.h:25,
                 from src\main.cpp:24:
C:/Qt/4.2.3/include/QtGui/../../src/gui/itemviews/qlistwidget.h:152:
error: cann
ot declare member function `TexiProject::QListWidgetItem::setText'
within `TexiP
roject'
C:/Qt/4.2.3/include/QtGui/../../src/gui/itemviews/qlistwidget.h:155:
error: cann
ot declare member function `TexiProject::QListWidgetItem::setIcon'
within `TexiP
roject'
C:/Qt/4.2.3/include/QtGui/../../src/gui/itemviews/qlistwidget.h:158:
error: cann
ot declare member function `TexiProject::QListWidgetItem::setStatusTip'
within `
TexiProject'

Christian Rengstl M.A.
Klinik und Poliklinik fÃr Innere Medizin II
Kardiologie - Forschung
UniversitÃtsklinikum Regensburg
B3 1.388
Franz-Josef-Strauss-Allee 11
93053 Regensburg
Tel.: +49-941-944-7230

--
 [ signature omitted ]