arthurgervais / Bitcoin-Simulator

Bitcoin and Blockchain Simulator
http://arthurgervais.github.io/Bitcoin-Simulator/
186 stars 75 forks source link

Fixed 'implicit declaration of undefined template' error. #5

Closed tnull closed 2 years ago

tnull commented 6 years ago

When trying to compile the simulator on macOS, I encountered a large number of 'implicit declaration of undefined template' errors, like:

../../src/applications/helper/bitcoin-topology-helper.cc:59:27: error: implicit instantiation of undefined template 'std::__1::array<double, 1001>'
  std::array<double,1001> downloadBandwitdhIntervals {
                          ^

This PR fixes this issue by including the array header.

FYI: I'm running the simulator with ns-3.27, and it seems to work fine in general.