This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77459] [6/7 Regression] undefined reference to `snprintf' when building mingw-w64 cross-compiler


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77459

--- Comment #3 from Georg Koppen <gk at torproject dot org> ---
(In reply to Jonathan Wakely from comment #2)
> It's 2016, how can snprintf not be supported still?

I asked about that problem in #mingw-w64 a while ago and got the following
answer:

M$ does not provide `snprintf()` despite their non-standard extension
`_snprintf()`. With mingw-w64, if the macro `__USE_MINGW_ANSI_STDIO` is defined
to `1`, `snprintf` is a macro that redirects calls to `snprintf` to
`__mingw_snprintf` instead.

Not sure if that helps debugging/fixing.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]