tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cuckaroo simple.cpp is not compiling with SHOW defined

kenaken opened this issue · comments

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!

Thanks for the bug report. Should be fixed in latest commit...

Now it works, thank you!