-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Regression? undefined reference when using different compiler #1753
Comments
I don't know if it's exactly the same issue, but I have similar undefined references with Visual Studio when fmt 7.0.0 is compiled as a shared lib and then consumed in a simple cpp executable ( |
Interesting. For some reason gcc doesn't resolve the |
Here's a minimal repro: https://godbolt.org/z/4C2Bd8 |
Also discussed here: https://twitter.com/vzverovich/status/1280338087579488256 |
Worked around in fbf3b94. Thanks for reporting. |
@Phygon, this looks like a bug in gcc so I recommend reporting there. |
fmtlib v7.1.3 contains the fix of fmtlib/fmt#1753 so let's bump up the submodule to the latest master HEAD of fmtlib for more fixes. Signed-off-by: Kefu Chai <[email protected]>
fmtlib v7.1.3 contains the fix of fmtlib/fmt#1753 so let's bump up the submodule to the latest master HEAD of fmtlib for more fixes. Signed-off-by: Kefu Chai <[email protected]>
fmtlib v7.1.3 contains the fix of fmtlib/fmt#1753 so let's bump up the submodule to the latest master HEAD of fmtlib for more fixes. Signed-off-by: Kefu Chai <[email protected]>
fmtlib v7.1.3 contains the fix of fmtlib/fmt#1753 so let's bump up the submodule to the latest master HEAD of fmtlib for more fixes. Signed-off-by: Kefu Chai <[email protected]>
fmtlib v7.1.3 contains the fix of fmtlib/fmt#1753 so let's bump up the submodule to the latest master HEAD of fmtlib for more fixes. Signed-off-by: Kefu Chai <[email protected]>
I just tried to upgrade from fmt 6.2.1 to fmt 7.0.0.
I compiled fmt with the default compiler (GCC 8.3 on Debian Buster), while the application is compiled with the most current clang++.
Reduced example code:
Compiled with:
clang++ -std=c++14 -o test test.cpp -lfmt
This results in the following error:
A similar error is printed when using clang++ for the fmt library and g++ for the test. No error if the compiler matches. With fmt 6.x, this also works without error.
The text was updated successfully, but these errors were encountered: