Qt-interest Archive, June 2007
Strange error with Qt-4.3.0rc1
Message 1 in thread
Hi List,
Got it working with Qt-4.2.3 but after compiling this against Qt-4.3.0rc1 I
get this :
CEventData.h: In member function âvoid
CEventData::qt_check_for_QOBJECT_macro(const T&) const [with T =
CEventObjectSelectedData]â:
/usr/local/Trolltech/Qt-4.3.0rc1/include/QtCore/qobject.h:409: instantiated
from âT qobject_cast(QObject*) [with T = CEventObjectSelectedData*]â
CEventObjectSelectedData.cpp:84: instantiated from here
CEventData.h:20: error: void value not ignored as it ought to be
Hmmmm. And on line 20 of CEventData, there is only the QOBJECT macro.... ???
//***************************************************************************
#ifndef CEVENTDATA_H
#define CEVENTDATA_H
#include <QtCore>
#include "EventLibExport.h"
class EVENTLIBINTERFACE CEventData : public QObject
{
Q_OBJECT <<<< Line 20
public:
CEventData();
virtual ~CEventData();
CEventData(const CEventData& eventData);
CEventData& operator= (const CEventData& eventData);
virtual CEventData* clone() const = 0;
virtual CEventData* create() const = 0;
virtual void copy(CEventData* destination) const = 0;
};
--
[ signature omitted ]
Message 2 in thread
Did you make sure that moc is recreating all your generated files?
When you switch qt versions, make sure you make clean or make rebuild.
Cheers,
Peter
Peter M. Groen wrote:
> Hi List,
>
> Got it working with Qt-4.2.3 but after compiling this against
Qt-4.3.0rc1
> CEventData.h:20: error: void value not ignored as it ought to be
> Hmmmm. And on line 20 of CEventData, there is only the QOBJECT
macro....
--
[ signature omitted ]
Message 3 in thread
On Monday 04 June 2007, Peter Prade wrote:
> Did you make sure that moc is recreating all your generated files?
>
> When you switch qt versions, make sure you make clean or make rebuild.
>
> Cheers,
> Peter
>
> Peter M. Groen wrote:
> > Hi List,
> >
> > Got it working with Qt-4.2.3 but after compiling this against
>
> Qt-4.3.0rc1
>
> > CEventData.h:20: error: void value not ignored as it ought to be
> > Hmmmm. And on line 20 of CEventData, there is only the QOBJECT
>
> macro....
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/
Hi Peter,
Yes, I did. Because of prior experiences and the speed of current hardware, a
complete rebuild is done every time.
But thank you. It was a good thought though.
I think this is more an issue for the Buglist. I think I'll post one. A shame
though, as some ORACLE issues were solved in this rc1 version.
Kind Regards,
--
[ signature omitted ]
Message 4 in thread
Hi,
> [...]
> #include "EventLibExport.h"
>
>
>
>
> class EVENTLIBINTERFACE CEventData : public QObject
> {
> Q_OBJECT <<<< Line 20
> [...]
What's in EventLibExport.h?
Try removing that header file - just for the purpose of isolating the problem.
Which compiler is this by the way?
--
[ signature omitted ]