OCC 5.2 Compiling with VC7.0

Hello All,

I have downloaded the new OCC5.2 and tried compliling under VC7.0, by porting the VS6.0 dsw. I have recieved these two error in TKservice compliling. Has anyone else seen this error? Can you pass along the resolution?

Regards,
Kevin

WNT_Allocator.cxx
\OpenCASCADE5.2\ros\src\WNT\WNT_Allocator.cxx(480) : error C2248: 'W32_Note::operator delete' : cannot access private member declared in class 'W32_Note'
f:\OpenCASCADE5.2\ros\src\WNT\W32_Allocator.hxx(103) : see declaration of 'W32_Note::operator delete'
f:\OpenCASCADE5.2\ros\src\WNT\W32_Allocator.hxx(87) : see declaration of 'W32_Note'
This diagnostic occurred in the compiler generated function 'WNT_PointNote::WNT_PointNote'
W95_Allocator.cxx
\OpenCASCADE5.2\ros\src\WNT\W95_Allocator.cxx(390) : error C2248: 'W32_Note::operator delete' : cannot access private member declared in class 'W32_Note'
f:\OpenCASCADE5.2\ros\src\WNT\W32_Allocator.hxx(103) : see declaration of 'W32_Note::operator delete'
f:\OpenCASCADE5.2\ros\src\WNT\W32_Allocator.hxx(87) : see declaration of 'W32_Note'
This diagnostic occurred in the compiler generated function 'W32_PointNote::W32_PointNote'

Markus Nickels's picture

Yes, I head the same error. My workaround was to comment the "private:" in W32_Allocator.hxx Line 102 out.

It's dirty, but it worked

Markus

Kevin Smith's picture

Hello Markus,

Thanks for the advice.

Kevin