Cuckaroo simple.cpp is not compiling with SHOW defined
kenaken opened this issue · comments
Alexey Kanakhin commented
Hello.
When I trying to compile simple.cpp in cucaroo folder with -DSHOW compiler is exits with error:
graph.hpp: In member function ‘void cuckoo_ctx::find_cycles()’:
graph.hpp:15:31: error: invalid use of non-static data member ‘graph<unsigned int>::NIL’
const word_t NIL = ~(word_t)0;
^
simple.cpp:55:55: error: from this location
for (int a=cg.adjlist[j]; a!=graph<word_t>::NIL; a=cg.links[a].next) printf(":%d", cg.links[a^1].to);
^
make: *** [simple19] Error 1
I'm trying to understand how cuckaroo PoW works, so I need SHOW to be defined for learning purposes.
Thank you!
John Tromp commented
Thanks for the bug report. Should be fixed in latest commit...
Alexey Kanakhin commented
Now it works, thank you!