Hi gentlemen, I tried to build OCC 7.4.0 with VS2019 16.6.0 (vc142 toolkit), with Windows 10. Unfortunately for some projects like TKTopAlgo the built never ends...
After some searches it seems there is a bug in VS2019.
The only solution I found is to disable optimization (replace /O2, /O1, Ox by Od)
I would like to know if you are aware of this problem and maybe have a better solution ?
But so far, nobody reported issue to Visual Studio developers in acceptable way. So it would be great to submit a report and pay attention of compiler developers.
02Commenter-2
Hi !
When compiling Data Exchange files, I get some compiling errors.
I got first the same errors as Francois. It's resolved thanks to Roman.
But now, I still have a problem when compiling IGESSelect_EditHeader.cxx:
error C2664: 'SetSatisfies' : cannot convert parameter 1 from 'unsigned int (const class Handle_TCollection_HAsciiString &)' to 'unsigned int (__cdecl *const & )(const class Handle_TCo llection_HAsciiString &)'
Context does not allow for disambiguation of overloaded function
Do you have any idea ?
Thanks, Commenter-2
03Commenter-3
Dear Thomas,
You might met the same problem compiling other sources that use any of the following:
(or their aliases as, for instance, Interface_TypedValue which is MoniTool_TypedValue).
The reason of the fail is that WNT cannot accept syntax like "const TYPE&" where TYPE is a pointer to a function, it requires just "const TYPE".
This problem is already fixed and the fix will be available in PR4. To proceed now please rename the following header files *_wnt.hxx files to corresponding *.hxx without suffix "_wnt":