I need to recompile the Q2C daemon for Poloniex, and I just can't get past this error:
net.cpp:1196:6: warning: character constant too long for its type [enabled by default]
net.cpp:1196:30: warning: character constant too long for its type [enabled by default]
net.cpp:1197:6: warning: character constant too long for its type [enabled by default]
net.cpp:1197:32: warning: character constant too long for its type [enabled by default]
net.cpp:1199:1: error: invalid conversion from int to const char* [-fpermissive]
net.cpp:1199:1: error: invalid conversion from int to const char* [-fpermissive]
net.cpp:1199:1: error: invalid conversion from int to const char* [-fpermissive]
net.cpp:1199:1: error: invalid conversion from int to const char* [-fpermissive]
make: *** [obj/net.o] Error 1
It looks like an actual error in the source, but that seems unlikely. Does anyone know what to do about this?
Was getting frustrated over the same error, but I think I've solved it:
Go to line 1196 in net.cpp and replace:
{'s-seed.mine-pool.net', 's-seed.mine-pool.net'}, // test static dns seeds
{'q2c-seed.mine-pool.net', 'q2c-seed.mine-pool.net'}, // test dynamic dns seeds
{NULL, NULL}
with
{"s-seed.mine-pool.net", "s-seed.mine-pool.net"}, // test static dns seeds
{"q2c-seed.mine-pool.net", "q2c-seed.mine-pool.net"}, // test dynamic dns seeds
{NULL, NULL}
At least it compiled. I will test it in a few moments.