altf4 / untwister

Seed recovery tool for PRNGs
GNU General Public License v3.0
367 stars 42 forks source link

Makefile - "./Untwister.cpp:271:10: error: prototype...." #25

Closed NewtoCScience closed 9 years ago

NewtoCScience commented 9 years ago

Hello Experts, I was lucky enough to get Linux / Ubuntu 14.04 to run the Makefile for Untwister, however it did not complete when I received the error, "./Untwister.cpp:271:10: error: prototype for ‘void Untwister::generateSampleFromSeed(uint32_t, uint32_t)’ does not match any in class ‘Untwister,

void Untwister::generateSampleFromSeed(uint32_t depth, uint32_t seed)" ^

I attached screenshots of the terminal results and error, the Makefile, Untwister.cpp (specifically the lines with the errors. terminal error libcppunit

Makefile Screenshot: makefile makefile_bottom

Untwister.cpp Screenshot: untwister cpp

untwister cpp-line271

Untwister.h Screenshot: untwister h

untwister h - line63 27

Can you please help me find the error to resolve and completely compile? Would like to reenact the Untwister.

untwister untwister_tests untwister_prngs

Thank you!

NewtoCScience commented 9 years ago

Update: I conducted research and found the answer for the error. I had to include "void generateSampleFromSeed(uint32_t depth, uint32_t seed);" in the Untwister.h file in the public section. Solution came from someone having a similar issue, http://stackoverflow.com/questions/26191575/prototype-for-xxxxxx-does-not-match-any-in-class-xxx.