Linking OCC 6.7.0 - ubuntu

I successfully built OCC 6.7.0 on linux.
The code compiles on windows but on linux it gives the following error:

/opencascade-6.7.0/inc/AIS_InteractiveContext.hxx:646:35: error: expected unqualified-id before ‘const’
/opencascade-6.7.0/inc/AIS_InteractiveContext.hxx:646:35: error: expected ‘)’ before ‘const’

It is due to this line:

//! Returns the status astatus of the Interactive Context

//! for the view of the Interactive Object anObj.

Standard_EXPORT void Status(const Handle(AIS_InteractiveObject)& anObj,TCollection_ExtendedString& astatus) const;

What is missing?

Aris Karagiannidis's picture

I am having the exact same issue. But with openCASCADE 6.7.1 if you have come across any solution please post it here. It would be very helpful.

Aris Karagiannidis's picture

I solved this by changing the order of the #include directives in my code. apparently some of the #defines conflict each other so they have to be included with care.

Shu Huang's picture

I have the same issue for opencascade-6.7.1. Can you tell me what orders have you changed to solve this problem. Thank you in advance.