dragonforce icon indicating copy to clipboard operation
dragonforce copied to clipboard

Failing compilation when running build script

Open ppartarr opened this issue 4 years ago • 0 comments

When running the build script I was having the following compilation error:

/home/philippe/src/wifi/dragonforce/timingresults.cpp: In constructor ‘PasswordSignature::PasswordSignature(const char*)’:
/home/philippe/src/wifi/dragonforce/timingresults.cpp:414:9: error: ‘runtime_error’ was not declared in this scope
  414 |   throw runtime_error("Could not open signature file");
      |         ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/bruter.dir/build.make:118: CMakeFiles/bruter.dir/timingresults.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/bruter.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

I simply resolved it by including stdexcept in timingaresults.h as shown below:

diff --git a/timingresults.h b/timingresults.h
index 0fe231a..ca2b2dd 100644
--- a/timingresults.h
+++ b/timingresults.h
@@ -4,6 +4,7 @@
 #include <string>
 #include <vector>
 #include <map>
+#include <stdexcept>
 
 #include "passwordlist.h"

Hope this helps!

ppartarr avatar Apr 30 '21 14:04 ppartarr