0 Members and 1 Guest are viewing this topic.
g++ -I. -DUSE_REUSABLES -DUSE_GMP -DUNIXVER -DUSE_BUILTIN_FCREATE -c main.cppIn file included from storage.h:5:0, from main.cpp:7:hash.h:29:31: erreur: expected template-name before ‘<’ token : public std::unary_function<const char *, size_t> ^hash.h:29:31: erreur: expected ‘{’ before ‘<’ tokenhash.h:29:31: erreur: expected unqualified-id before ‘<’ tokenMakefile:10: recipe for target 'main.o' failedmake: *** [main.o] Error 1
You'll need to add #include <functional> and #include <unordered_map> at the top (under #include "list.h"). [In hash.h]You'll also need to add the flag:-std=c++11..to g++ in the makefile:CXXFLAGS+= -I. -DUSE_REUSABLES -DUSE_GMP -DUNIXVER -DUSE_BUILTIN_FCREATE -std=c++11