Xyresic/digits

error while compiling with mingw32-make

Opened this issue · 0 comments

twoBn commented

while compiling, i got this error:
digits-master\c++\Neural_Network\Network.cpp:162:86: error: 'max_element' was not declared in this scope return vec_index(confidences, *max_element(confidences.begin(), confidences.end()));

after adding #include <algorithm> to the top, it compiled successfully

(also after running the compiled exe, it complained about needing 2 dlls from wxwidgets: wxbase313u_gcc_custom.dll and wxmsw313u_core_gcc_custom.dll. after putting these dlls in the folder with the exe it worked fine, so i don't know if this is any cause for concern)