DiscussionsIssue archiveInstallation and Building

Archived discussion

vs2019,occt7.9 Build error

Installation and BuildingFri, 03/28/2025 - 14:222 replies

Browse this forum
QuestionAuthor

If #include<V3d_Viewer.hxx>, an error will occur
OpenCASCADE79\OCCT-7_9_0\src\V3d\V3d_Light.hxx(26,9): error C4996: 'Handle_Graphic3d_CLight': This class will be removed right after 7.9 release. Use Handle(T) directly instead.

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello. It is must be a warning. I assume in your project you specify Warning to be marked as Errors.

In that case, you need to supress them.

Please before calling header, define the next:

#define OCCT_NO_DEPRECATED

Best regards, Commenter-1.

02Author

Thanks