src/protocols/toolbox/NetworkAlgorithms.cc:93:30: error: use of undeclared identifier 'INT_MAX' #311
-
|
Hi all, I'm trying to install Rosetta 3.14 on Ubuntu 24.04.1 LTS. I'm installing using the scons.py script but I get the followign error output: rosetta_bin_ubuntu_3.14_bundle/rosetta.binary.ubuntu.release-371/main/source/./external/scons-local/scons.py:105: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Any idea what the problem here is? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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.) |
Beta Was this translation helpful? Give feedback.
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.)