[Qt-interest] error: expected initializer before ‘QtGuiModule’
Neel Basu
neel.basu.z at gmail.com
Thu Apr 23 21:09:51 CEST 2009
On Friday 24 April 2009 00:19:00 Stephen Jackson wrote:
> On 23/04/09, Neel Basu wrote:
> > I am getting the following Error
> > -------------------
> > /usr/include/qt4/QtGui/qwindowdefs.h:47: error: expected initializer
> > before ‘QtGuiModule’
> > ------------------------
> > Now What Should I do ?
> >
> > Thanks
> > Neel
>
>
> What version of Qt?
4.5
> What operating system (and version)?
Ubuntu 7.10
> What compiler and version?
gcc version 4.3.2
Here goes the Complete Error Message
------------------------------------------------------------
make: Entering directory `/home/neel/Development/QtCreator/QMail'
/usr/bin/make -f Makefile.Debug
make[1]: Entering directory `/home/neel/Development/QtCreator/QMail'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -
DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -
I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -
I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -
I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Idebug -
I. -o debug/accountconfig.o accountconfig.cpp
In file included from /usr/include/qt4/QtGui/qwindowdefs.h:41,
from /usr/include/qt4/QtGui/qwidget.h:41,
from /usr/include/qt4/QtGui/qframe.h:41,
from /usr/include/qt4/QtGui/QFrame:1,
from accountconfig.h:4,
from accountconfig.cpp:2:
/usr/include/qt4/QtCore/qobjectdefs.h:47: error: expected initializer before
‘QtCoreModule’
settings.h: In member function ‘void AccountConfig::loadAccount(int)’:
settings.h:47: error: ‘AccountsListT ConfigT::accounts’ is inaccessible
accountconfig.cpp:25: error: within this context
settings.h: In member function ‘void AccountConfig::saveAccount(int)’:
settings.h:47: error: ‘AccountsListT ConfigT::accounts’ is inaccessible
accountconfig.cpp:43: error: within this context
make[1]: Leaving directory `/home/neel/Development/QtCreator/QMail'
make: Leaving directory `/home/neel/Development/QtCreator/QMail'
make[1]: *** [debug/accountconfig.o] Error 1
make: *** [debug] Error 2
Exited with code 2.
----------------------------------------------------------------
I suspect the error is in one of these four files
I've attached
with that error there are one more wired error
in my settings.h
struct ConfigT : SettingsT{
GeneralConfigT general;
AccountsListT accounts;
MiscConfigT misc;
};
But when I try to access accounts from accountconfig.cpp it says
error: ‘AccountsListT ConfigT::accounts’ is inaccessible
Thanks
Neel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: settings.h
Type: text/x-chdr
Size: 1316 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/3ee2df12/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: settings.cpp
Type: text/x-c++src
Size: 4044 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/3ee2df12/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accountconfig.h
Type: text/x-chdr
Size: 464 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/3ee2df12/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accountconfig.cpp
Type: text/x-c++src
Size: 1744 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/3ee2df12/attachment-0003.bin
More information about the Qt-interest-old
mailing list