Post
Topic
Board Announcements (Altcoins)
Re: [ANN][Q2C] QubitCoin new secure hashing (CPU mining) (NEW) pool.q2c.cc
by
bengal17
on 12/02/2014, 12:04:31 UTC
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:
Quote
    {'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
Quote
    {"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.