Archived issue #0033200

Missing include

CommunityOCCT:Testsclosed2 public notes

Search issues

Description

(I'll try to make a PR to fix this now)

It seems like if you build all on OCCT 7.7.0 right now, you get an error:

/opt/occt-7.7.0/src/ViewerTest/ViewerTest_CmdParser.cxx:54:11: error: ‘numeric_limits’ is not a member of ‘std’
   54 | (std::numeric_limits<std::size_t>::max)();
      | ^~~~~~~~~~~~~~

Which I fixed on my computer by just adding:
#include <limits>

To the file:
src/ViewerTest/ViewerTest_CmdParser.cxx


I'm new to C++ projects, so bear with me, but since I used the default CMake building chain I assume the problem is in the source code. So I decided to open an issue and PR for it

Feel free to close it if it's not relevant. In which case, I'd like to know what I did wront

Steps to reproduce

Get the OCCT 7.7.0 source code from:
https://git.dev.opencascade.org/gitweb/?p=occt.git;a=shortlog;h=refs/tags/V7_7_0

For example:
https://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=[revision removed]

mkdir build
cd build
cmake ..
cmake --build . -v -j4

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 3
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: imochoa
Date: Tue Nov 15 12:01:51 2022 +0100

    CR33200 added limits include
02Commenter 2
Issue have been resolved within 0033250

Related records