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 #51, externalize symbols in lc_test_utils.h #52

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Dec 1, 2022

Checklist (Please check before submitting)

Describe the contribution
Make the table objects in this header "extern" and instantiate them in the C file instead. This solves the duplicate symbol linker errors.

Fixes #51

Testing performed
Build and run all tests

Expected behavior changes
Tests will build, link, and execute successfully

System(s) tested on
Ubuntu 22.04

Additional context
Will submit a separate issue to consider adding -fno-common to the CFS CI workflows, as it masks this issue in Ubuntu 20.04.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Make the table objects in this header "extern" and instantiate them in
the C file instead.  This solves the duplicate symbol linker errors.
@dzbaker dzbaker merged commit 358fc48 into nasa:main Dec 1, 2022
@dmknutsen dmknutsen added this to the Draco milestone Jan 18, 2023
@jphickey jphickey deleted the fix-51-extern-ut-tables branch February 17, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Items instantiated in header causes duplicate definitions and link errors
3 participants