View Issue Details

IDProjectCategoryView StatusLast Update
0033157CommunityOCCT:Testspublic2022-10-04 19:01
Reportergalbramc Assigned Toapn  
PrioritynormalSeverityblock 
Status newResolutionopen 
PlatformLinuxOSUbuntu 20.04 
Summary0033157: Compile error with OCCT 7.7.0 Beta
DescriptionThere appears to be a missing include for <limits>. Using Ubuntu 22.04 with GNU 11.2 with the occt repo with the V7_7_0_beta tag.

occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:80: error: ‘numeric_limits’ is not a member of ‘std’
   53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)();
      | ^~~~~~~~~~~~~~
occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:106: error: expected primary-expression before ‘>’ token
   53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)();
      | ^
occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:109: error: ‘::max’ has not been declared; did you mean ‘std::max’?
   53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)();
      | ^~~
      | std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /home/jenkins/util/ESP/occt/src/ViewerTest/ViewerTest_CmdParser.cxx:22:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 | max(initializer_list<_Tp> __l, _Compare __comp)
Steps To ReproduceCompile OCCT 7.7.0 beta (tag V7_7_0_beta) with cmake variable BUILD_MODULE_Draw=ON.
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-10-04 19:01 galbramc New Issue
2022-10-04 19:01 galbramc Assigned To => apn