DiscussionsIssue archiveOCCT:Configuration

Archived issue #0032407

Standard_Macro.hxx needs a tweak in one IF statement

CommunityOCCT:Configurationclosed4 public notes

Search issues

Description

In linking our software (Topologic) to OCCT, our software developer found that we need to change one line in the OCCT installation/configuration files: C:\OpenCASCADE-7.X.X-vc14-64\opencascade-7.X.X\inc\Standard_Macro.hxx. You need to change line 67 from

#if defined(__has_cpp_attribute)
to

#if defined(__has_cpp_attribute) && !defined(__CLING__)

Please consider making this change to your official files. Thank you.

Steps to reproduce

Nothing to reproduce.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Could you please provide more details on the problem you are experiencing?

Do you have compilation errors in your application code or warnings?
How do they look alike?

Described configuration (VC++ 2015) is widely used one, so it is unclear what exactly might be wrong...
Maybe you are using another C++ standard in your project settings?
02Author
We have interfaced our C++ code (github.com/Author/topologic) with python using cppyy. We are having problem where loading the library fails. A software developer (now not associated with the project) recommended this tweak, but did not explain its effect. We are not sure it has an effect or not.
03Author
Please close. Further testing revealed this change is not needed.
04Commenter 2
Author, thanks for checking.