Skip to content
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

AsDefault.h conflict #11

Closed
tmatijevich opened this issue Oct 3, 2023 · 3 comments
Closed

AsDefault.h conflict #11

tmatijevich opened this issue Oct 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tmatijevich
Copy link
Collaborator

In projects with global IEC type declarations containing array elements of a non-zero starting index causes a build error with BuildVer task's main.c AsDefault.h include statement.

The automatically generated header file of the global IEC type declaration reads:

/* Data type XXXXXXXXXXXX not declared. Data types with array elements whose starting indexes are not equal to zero cannot be used in ANSI C programs / libraries.*/
@tmatijevich tmatijevich added the bug Something isn't working label Oct 3, 2023
@tmatijevich tmatijevich self-assigned this Oct 3, 2023
@tmatijevich
Copy link
Collaborator Author

This only occurs when the non-zero indexed array is used in a substructure, invalidating the automatically generated header file.
image

@tmatijevich
Copy link
Collaborator Author

More specifically, this is an issue with #include <bur/plc.h> or #include <bur/plctypes.h> automatically including global type headers

@tmatijevich
Copy link
Collaborator Author

Set -U _DEFAULT_INCLUDES in the compiler's additional build options for the BuildVer program.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant