Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / 6.5.0: Compile errors from 'clang' on OS X

6.5.0: Compile errors from 'clang' on OS X

6.5.0: Compile errors from 'clang' on OS X
Jens Kilian 2011/03/16 20:30
FYI: Compiling with 'clang' on OS X, I encountered the following errors; I know that 'clang' is not a supported compiler, but I think they point to a real problem in the code.

../../../src/Visual3d/Visual3d_TransientManager.cxx:123:47: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrUnderLayer = (CALL_DEF_LAYER *) &(UnderLayer->CLayer ());
^ ~~~~~~~~~~~
../../../src/Visual3d/Visual3d_TransientManager.cxx:127:46: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrOverLayer = (CALL_DEF_LAYER *) &(OverLayer->CLayer ());
^ ~~~~~~~~~~~
../../../src/Visual3d/Visual3d_TransientManager.cxx:192:46: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrUnderLayer = (CALL_DEF_LAYER *)&(AView->UnderLayer()->CLayer());
^ ~~~~~~~~~~
../../../src/Visual3d/Visual3d_TransientManager.cxx:194:45: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrOverLayer = (CALL_DEF_LAYER *)&(AView->OverLayer()->CLayer());
^ ~~~~~~~~~~
../../../src/Visual3d/Visual3d_TransientManager.cxx:232:47: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrUnderLayer = (CALL_DEF_LAYER *) &(AView->UnderLayer()->CLayer ());
^ ~~~~~~~~~~~
../../../src/Visual3d/Visual3d_TransientManager.cxx:234:46: error: taking the address of a temporary object of type 'Aspect_CLayer2d' (aka 'CALL_DEF_LAYER') [-Waddress-of-temporary]
theCView.ptrOverLayer = (CALL_DEF_LAYER *) &(AView->OverLayer()->CLayer ());
^ ~~~~~~~~~~~
sergey zaritchny 2011/03/17 14:18
Hi Jens,
I would like to inform you that the posted problem is checked and we confirm that it is the real bug.
The corresponding issue with ID = OCC22330 has been registered.
Later you can know if the issue is resolved by checking references to the specified ID in OCCT Release Notes. The analysis of the issue will take some time depending on our technical capability and availability of resources.

Regards
 
 
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map