For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Qt: Compilation Error with QCorevent

Rajesh Kishore's picture
Forums: 

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.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.