vs2019,occt7.9 Build error

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.

Dmitrii Pasukhin's picture

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, Dmitrii.

开明 徐's picture

Thanks