Skip to content
Discussion options

You must be logged in to vote

The issue is that different compilers include different amounts of the C/C++ standard library in each header. Technically, INT_MAX is defined in limits.h, which NetworkAlgorithms.cc doesn't include. This is fine for other compilers, as other headers it does include will bring in INT_MAX. But your compiler apparently doesn't do that with the current set of headers.

The fix is to explicitly include the header in the code at the top of the file. See PR #313 for an example of how to do this. -- For Rosetta 3.14, just simply edit the existing files on disk and recompile. (It shouldn't affect anything about how things run.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dominko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants