matt-42 / silicon

A high performance, middleware oriented C++14 http web framework please use matt-42/lithium instead
http://siliconframework.org
MIT License
1.72k stars 138 forks source link

urldecode.hh compiler error #55

Open filosofisto opened 7 years ago

filosofisto commented 7 years ago

Trying to compile helloworld sample in OpenSUSE, with command:

clang++ -std=c++14 -I /home/eduardo/C/SiliconWebAPI/include -I /home/eduardo/C/microhttpd/include hello_world.cc -lmicrohttpd -o hello_world

I got these error:

In file included from /home/eduardo/C/SiliconWebAPI/include/silicon/backends/mhd.hh:27: /home/eduardo/C/SiliconWebAPI/include/silicon/backends/urldecode.hh:35:22: error: use of undeclared identifier 'MHD_http_unescape' content.resize(MHD_http_unescape(&content[0])); ^ In file included from hello_world.cc:2: /home/eduardo/C/SiliconWebAPI/include/silicon/backends/mhd.hh:486:15: error: use of undeclared identifier 'MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY' flags = MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY; ^ /home/eduardo/C/SiliconWebAPI/include/silicon/backends/mhd.hh:540:36: error: use of undeclared identifier 'MHD_FEATURE_SSL' if (MHD_is_feature_supported(MHD_FEATURE_SSL) == MHD_NO)

Some idea?

matt-42 commented 7 years ago

Which version of microhttpd do you have?