burst-miner
burst-miner copied to clipboard
Make failed
Hello,
Thank you for your miner. I tried to make it but I got this error:
In file included from src/Miner.h:90:0,
from src/MinerLogger.cpp:9:
src/MinerProtocol.h:21:79: error: ‘std::function’ has not been declared
void httpPostAsync(const std::string url, const std::string body,std::function< void ( std::string ) > responseCallback);
^~~~~~~~
src/MinerProtocol.h:21:87: error: expected ‘,’ or ‘...’ before ‘<’ token
void httpPostAsync(const std::string url, const std::string body,std::function< void ( std::string ) > responseCallback);
^
In file included from src/Miner.h:90:0,
from src/MinerLogger.cpp:9:
src/MinerProtocol.h:22:54: error: ‘std::function’ has not been declared
void httpGetAsync(const std::string url,std::function< void ( std::string ) > responseCallback);
^~~~~~~~
src/MinerProtocol.h:22:62: error: expected ‘,’ or ‘...’ before ‘<’ token
void httpGetAsync(const std::string url,std::function< void ( std::string ) > responseCallback);
^
src/MinerProtocol.h:28:36: error: ‘std::function’ has not been declared
std::function< void ( std::string ) > responseCallback );
^~~~~~~~
src/MinerProtocol.h:28:44: error: expected ‘,’ or ‘...’ before ‘<’ token
std::function< void ( std::string ) > responseCallback );
^
Makefile:37: recipe for target 'bin/MinerLogger.o' failed
make: *** [bin/MinerLogger.o] Error 1
Can you please help?
Cheers, Son Do
In the file MinerProtocol.h add
#include <functional>