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

fix: declare external pou initializers as external #1290

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

mhasel
Copy link
Member

@mhasel mhasel commented Sep 3, 2024

Global instance initializers __<global_instance>__init of POUs declared {external} are now also declared as external.
This also needs fixing for external structs, tracked here #1291.

Resolves #1287

@mhasel mhasel force-pushed the external-instance-initializers branch from 80eea90 to 22bbd64 Compare September 3, 2024 09:19
@mhasel mhasel marked this pull request as ready for review September 3, 2024 09:42
@mhasel mhasel requested a review from ghaith September 3, 2024 09:43
@timokroeger
Copy link

I did a quick test and was able to statically link the iec61131std library with this change.

@mhasel mhasel merged commit 61cc308 into master Sep 4, 2024
19 checks passed
@mhasel mhasel deleted the external-instance-initializers branch September 4, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate *__init symbols when linking function blocks statically
3 participants