-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Undefined reference to vformat #795
Comments
Could you post the output of |
323b92b is a tentative fix, although I wasn't able to repro the issue on my version of gcc. Please let me know if it works for you and I'll merge into master. |
This fixes it in both GCC and MSVC. Here's the output from and |
Merged the fix into |
Following program fails in linker stage with an undefined reference to
vformat
. It happens with GCC 7.3 (MSYS2) and MSVC 14.1 but only in release-flavour configurations (all three of them). I suspect theinline
keyword onvformat()
definition informat.h
can be a culprit here (in debug configuration compiler does not optimize aggressively inline functions).It doesn't exhibit any problems if I change include
fmt/format.h
instead offmt/core.h
.The text was updated successfully, but these errors were encountered: