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 linux build #1

Merged
merged 5 commits into from
May 22, 2022
Merged

Fix linux build #1

merged 5 commits into from
May 22, 2022

Conversation

finestructure
Copy link
Owner

@finestructure finestructure commented May 22, 2022

On Linux, the @main struct cannot be in a library target that is then imported by the executable target. This works on macOS but raises the following build error on Linux:

error: link command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld.gold: error: undefined symbol 'pg_extras_main' referenced in expression
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

This work-around moves the top level command into the executable target.

@finestructure finestructure merged commit b78be35 into main May 22, 2022
@finestructure finestructure deleted the fix-linux branch May 22, 2022 15:59
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.

None yet

1 participant