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

fixed duplicate symbols errors on header-only version. issue #16 #35

Closed
wants to merge 1 commit into from

Conversation

mnpk
Copy link

@mnpk mnpk commented Feb 5, 2015

I got duplicate symbols errors when include header-only version in more than one cpp files.
So I just add inline keyword before method defines to fix this. Link errors disappeared. Is this enough to close #16?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling d2fa8f4 on mnpk:master into c4d7485 on nlohmann:master.

@nlohmann
Copy link
Owner

nlohmann commented Feb 5, 2015

Thanks for the request. This solves the problem for now, but unfortunately the file is generated from the header src/json.h. So whenever that file is changed, it will overwrite header_only/json.h.

I am currently working on a header-only file myself - this time, not as a byproduct of a .h/.cc pair of files. I hope to have it released in the weekend.

Thanks for your effort anyway!

@nlohmann nlohmann closed this Feb 5, 2015
GerHobbelt pushed a commit to GerHobbelt/nlohmann-json that referenced this pull request May 7, 2021
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.

3 participants