-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Linking error "duplicate symbol: std::type_info::operator==" on static build with MinGW #3042
Comments
I am not sure how this issue is related to this library if it mentions a duplicate symbol in namespace |
But this error exists only when using .dump () method and only in static build mode. |
I understand - but maybe it's just triggering some bug inside the compiler. Anyway, I see if I can reproduce this in the CI. |
I looked inside the json.hpp code and reproduced problem without json library:
If last code line don't consist std::make_shared - no error. Do you have anything version about this? |
Thanks for checking back! |
See the issue too, but cannot reproduce it with the reduced example (without json). I get the error within another context. |
json 3.9.1 + MinGW 10.3.0 + Clang 12.0.0 x86
Link error on build test example with "--static" flag when use dump() method:
without the "--static" flag, the build finishes successfully.
Can you provide a small but working code example?
If comment string with j.dump(), build is ok.
The text was updated successfully, but these errors were encountered: