PDA

View Full Version : Compile error related with Qcoreevent



Pragya
11th May 2007, 12:27
Hi all,
I am trying an application on LINUX(SUSE 10.2) where I am using the external library (OCC) with the Qt application. But I am ending with compile time error:

/usr/include/QtCore/qcoreevent.h:232: error: expected unqualified-id before ?protected?
/usr/include/QtCore/qcoreevent.h:236: error: expected unqualified-id before ?private?
/usr/include/QtCore/qcoreevent.h:238: error: invalid function declaration
/usr/include/QtCore/qcoreevent.h:239: error: invalid function declaration
/usr/include/QtCore/qcoreevent.h:240: error: invalid function declaration
/usr/include/QtCore/qcoreevent.h:242: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:243: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:244: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:245: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:246: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:247: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:248: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:249: error: ?friend? can only be specified inside a class
/usr/include/QtCore/qcoreevent.h:250: error: expected declaration before ?}? token

Has anybody faced the similar kind of problem, what could be the solution for this?
Any suggestions are really welcome.