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
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Unsorted projects / problem with 5.1?

problem with 5.1?

problem with 5.1?
H Hahn 2003/10/29 17:16

I just tried to use ImproveCascade with Opencascade Version 5.1.

When compiling the the Project TKV3d I get the an error:

..\..\inc\Visual3d/TransientManager.hxx(107) : error C2373: 'flush' : redefinition; different type modifiers

The error referes to:

Standard_EXPORT static void ClearDraw(const Handle(Visual3d_View)& aView,const Standard_Boolean std::flush = Standard_True) ;

This is my first time using Improve Cascade and compiling opencascade, so I'm not sure if the error is because of ImproveCascade.

Would be glad if anyone could give me a hint whats wrong.


Patrik Müller 2003/10/29 17:28

at the moment it is a problem: .

I hope Conrad or the OCC team will fast find a workaround. I also had to go back to VC6 :-((


H Hahn 2003/10/29 17:33

(hope they fix it!)
Conrad J Poelman 2003/10/30 15:42
Hi guys,

Sorry, I'm out of town this week and am just catching up on my email. I have not yet tried using ImproveCascade on OpenCascade 5.1, so it doesn't surprise me that there are a few issues. Hopefully I'll have some time to work on this next week.

ImproveCascade uses a fairly simple "search and replace" strategy to add "std:::" to certain places, with a number of hard-wired exceptions to not add it where it doesn't belong. It sounds like I need to add an exception for this case, since "TransientManager.hxx" uses "flush" as a local variable name. In the mean time, either renaming the "flush" variable to something else (probably also needed in "TransientManager.cpp") prior to running ImproveCascade, or manually removing the "std::" prefix from the variable name after running ImproveCascade, should get you over this hump.

-- Conrad
Pawel 2004/07/16 15:09
I'm compiling OC5.1 under VC.NET 2003. Removing "std::" before "flush" in *Transient header files works fine in my case.
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