-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example Planner does not compile #166
Comments
After reading about designated initialisers, I see that this is a C vs C++ issue |
Should be fine on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ubuntu 18.04
C++ 17 - set(CMAKE_CXX_STANDARD 17)
line 264:
CYAML_FIELD_SEQUENCE(
"depends", CYAML_FLAG_POINTER | CYAML_FLAG_OPTIONAL,
struct task, depends,
&string_ptr_schema, 0, CYAML_UNLIMITED),
error message:
error: designator order for field ‘cyaml_schema_field::data_offset’ does not match declaration order in ‘const cyaml_schema_field_t’ {aka ‘const cyaml_schema_field’}
cause:
the CYAML_FIELD_SEQUENCE declares the struct in the wrong order
fix:
edit the CYAML_FIELD_SEQUENCE (and other macros) to declare the struct members in the right order
The text was updated successfully, but these errors were encountered: