I am getting an error with Lwan Backend, possibly lwan has updated breaking changes.
This is the error:
In file included from /usr/local/include/lwan/lwan.h:35:0,
from /usr/local/include/silicon/backends/lwan.hh:8,
from main.cpp:18:
/usr/local/include/lwan/lwan.h: In function ‘lwan_key_value lwan_key_value_array_append(lwan_key_value_array)’:
/usr/local/include/lwan/lwan.h:239:1: error: invalid conversion from ‘void’ to ‘lwan_key_value’ [-fpermissive]
DEFINE_ARRAY_TYPE(lwan_key_value_array, struct lwan_key_value)
^
In file included from main.cpp:18:0:
/usr/local/include/silicon/backends/lwan.hh: At global scope:
/usr/local/include/silicon/backends/lwan.hh:27:5: error: ‘lwan_request_t’ does not name a type
lwan_request_t lwan_req;
^
/usr/local/include/silicon/backends/lwan.hh:32:33: error: expected ‘)’ before ‘’ token
lwan_response(lwan_request_t _lwan_req, lwan_response_t _lwan_resp)
^
main.cpp:297:1: error: expected ‘}’ at end of input
}
^
main.cpp:297:1: error: expected unqualified-id at end of input
main.cpp:297:1: error: expected ‘}’ at end of input
Hi Matthieu ,
I am getting an error with Lwan Backend, possibly lwan has updated breaking changes. This is the error: In file included from /usr/local/include/lwan/lwan.h:35:0, from /usr/local/include/silicon/backends/lwan.hh:8, from main.cpp:18: /usr/local/include/lwan/lwan.h: In function ‘lwan_key_value lwan_key_value_array_append(lwan_key_value_array)’: /usr/local/include/lwan/lwan.h:239:1: error: invalid conversion from ‘void’ to ‘lwan_key_value’ [-fpermissive] DEFINE_ARRAY_TYPE(lwan_key_value_array, struct lwan_key_value) ^ In file included from main.cpp:18:0: /usr/local/include/silicon/backends/lwan.hh: At global scope: /usr/local/include/silicon/backends/lwan.hh:27:5: error: ‘lwan_request_t’ does not name a type lwan_request_t lwan_req; ^ /usr/local/include/silicon/backends/lwan.hh:32:33: error: expected ‘)’ before ‘’ token lwan_response(lwan_request_t _lwan_req, lwan_response_t _lwan_resp) ^ main.cpp:297:1: error: expected ‘}’ at end of input } ^ main.cpp:297:1: error: expected unqualified-id at end of input main.cpp:297:1: error: expected ‘}’ at end of input
Thanks