Skip to content

Fix duplicate symbols for functions in cpp2util.h #43

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

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

filipsajdak
Copy link
Contributor

cpp2::report_and_terminate, cpp2::to_string, and cpp2::fopen duplicate symbols and compilation fails on linking.

This change makes them inline.

closes #42

cpp2::report_and_terminate, cpp2::to_string, and cpp2::fopen
duplicate symbols and compilation fails on linking.

This change makes them inline.
@JohelEGP
Copy link
Contributor

JohelEGP commented Oct 3, 2022

That fixes it: https://godbolt.org/z/aWvc57G8W.

On #42, you mentioned

I need to check if there are no other duplicated symbols excluded due to preprocessor rules.

Perhaps you could use Compiler Explorer to investigate that.

@hsutter
Copy link
Owner

hsutter commented Oct 5, 2022

Looks good, thanks.

@hsutter hsutter merged commit 111edb7 into hsutter:main Oct 5, 2022
@filipsajdak filipsajdak deleted the fsajdak-fix-duplicate-symbols branch January 12, 2023 21:21
Azmah-Bad pushed a commit to Azmah-Bad/cppfront that referenced this pull request Feb 24, 2023
…symbols

Fix duplicate symbols for functions in cpp2util.h
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.

[BUG] Duplicate symbols from cpp2util.h
3 participants