bitcoin/bitcoin — Issue #637: FTBFS: INT64_MIN not defined.
Author: thisisnotmyrealemail
Created: 2011-11-16 07:07:19+00:00
State: open

I get errors from net.cpp and other modules about INT64_MIN not being defined. Including , , or doesn't help. These headers seem to work differently in C++ from C.

To make the modules compile, I had to write and #include the following header file (which I called "cpplimits.h"):

#ifndef CPPLIMITS_H
#define CPPLIMITS_H
#include
#include
#define INT64_MAX std::numeric_limits::max()
#define INT64_MIN std::numeric_limits::min()
#define UINT64_MIN std::numeric_limits::min()
#define UINT64_MAX std::numeric_limits::max()
#endif

gcc --version output:

gcc (Debian 4.3.2-1.1) 4.3.2