Open namanyayg opened 6 years ago
I have the same error
alex@ubuntu:~/cpptrade$ make make all-am ..........................
./vendor/liquibook/src/book/comparableprice.h:89:12: note: add parentheses around left hand side expression to silence this warning
return ! price == rhs;
^~~~
( )
obsrv.cc: In function ‘int main(int, char)’:
obsrv.cc:397:9: error: ‘evhtp_set_regex_cb’ was not declared in this scope
cb = evhtp_set_regex_cb(htp, apiEnt->path, apiEnt->cb, (void ) apiEnt);
^~~~~~
obsrv.cc:397:9: note: suggested alternative: ‘evhtp_set_gencb’
cb = evhtp_set_regex_cb(htp, apiEnt->path, apiEnt->cb, (void ) apiEnt);
^~~~~~
evhtp_set_gencb
Makefile:703: recipe for target 'obsrv.o' failed
make[1]: ** [obsrv.o] Error 1
make[1]: Leaving directory '/home/alex/cpptrade'
Makefile:577: recipe for target 'all' failed
make: [all] Error 2
It seems need to install oniguruma before libevhtp, if not, it will define EVHTP_DISABLE_REGEX during we build libevhtp. `#ifndef EVHTP_DISABLE_REGEX EVHTP_EXPORT evhtp_callback_t evhtp_set_regex_cb(evhtp_t htp, const char pattern, evhtp_callback_cb cb, void arg);
`
Happens during
make
.Dependencies/subdependencies installed:
What could be wrong?