hxx files duplicated under inc and src folders

I saw several header files which are duplicated, one under ros\inc and one together with the cxx file under ros\src\....
For example BRepExtrema_DistShapeShape.hxx is also present in ros\src\BRepExtrema.

Is there is a serious reason for this?
For us it is a little risky, as we sometimes modify them and we have to remember keeping them aligned.
What would happen if we removed the src copies?


Forum supervisor's picture

Dear Mauro,
Duplication of header files is a feature of WOK(the legacy build system used to build OCCT).
If you remove header files located in src, you will not be able to re-build OCCT in standard way.
In the next major version of OCCT, 7.0, scheduled for end of this year, this duplication should be eliminated.
You can find some details in this topic: http://dev.opencascade.org/index.php?q=node/960, point 4.
Best regards