You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
with latest r3 lib, proxygen-routing did not compile
Router.cpp:127:44: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you me
ant to use '->' ?)
for (size_t i = 0; i < entry_ptr->vars.tokens.size; i++)
^~~~~~
Router.cpp:130:36: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char token[entry_ptr->vars.tokens.entries[i].len + 1] = {0};
^~~~~~
Router.cpp:131:35: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char slug[entry_ptr->vars.slugs.entries[i].len + 1] = {0};
^~~~~
Router.cpp:132:17: error: 'token' was not declared in this scope
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~
Router.cpp:132:40: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:132:80: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:133:17: error: 'slug' was not declared in this scope
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);
^~~~
Router.cpp:133:39: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);
The text was updated successfully, but these errors were encountered:
the problem seams to be, that the r3 version in e.g. the debian repos are to old,it looks like you need at least 400768394df6ff4aee58939d24ac63d45d4d8c5e as ist adds the required fields to the str_array struct
Hi,
with latest r3 lib, proxygen-routing did not compile
Router.cpp:127:44: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you me
ant to use '->' ?)
for (size_t i = 0; i < entry_ptr->vars.tokens.size; i++)
^~~~~~
Router.cpp:130:36: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char token[entry_ptr->vars.tokens.entries[i].len + 1] = {0};
^~~~~~
Router.cpp:131:35: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
char slug[entry_ptr->vars.slugs.entries[i].len + 1] = {0};
^~~~~
Router.cpp:132:17: error: 'token' was not declared in this scope
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~
Router.cpp:132:40: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:132:80: error: request for member 'tokens' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(token, entry_ptr->vars.tokens.entries[i].base, entry_ptr->vars.tokens.entries[i].len);
^~~~~~
Router.cpp:133:17: error: 'slug' was not declared in this scope
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);
^~~~
Router.cpp:133:39: error: request for member 'slugs' in 'entry_ptr->match_entry::vars', which is of pointer type 'str_array* {aka _str_array*}' (maybe you meant to use '->' ?)
strncpy(slug, entry_ptr->vars.slugs.entries[i].base, entry_ptr->vars.slugs.entries[i].len);
The text was updated successfully, but these errors were encountered: