Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6251: mingw gcc-4.5.0 compiler error: Undeclared swprintf
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-17 18:29:09
#6251: mingw gcc-4.5.0 compiler error: Undeclared swprintf
-------------------------------+--------------------------------------------
Reporter: viboes | Owner: apolukhin
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by apolukhin):
* owner: nasonov => apolukhin
* status: new => assigned
* version: Boost 1.48.0 => Boost 1.49.0
Comment:
This looks like a mingw bug. It has been
[http://sourceforge.net/tracker/?func=detail&aid=2373234&group_id=2435&atid=102435
reported] and looks like it is fixed (at least it is not reproduced at
mingw-4.5.2_0x).[[BR]]
[http://sourceforge.net/tracker/?func=detail&aid=2373234&group_id=2435&atid=102435
Workaround] was proposed:
{{{
#if (defined(__MINGW32__) || defined(__MINGW64__)) && (__GNUC__ == 4)
// workaround a mingw bug,
http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435
int swprintf (wchar_t *, size_t, const wchar_t *, ...);
#endif
}}}
(must be added to lexical_cast.hpp after #includes ao before the inclusion
of lexical_cast.hpp)[[BR]]
[[BR]]
I`ll test it on mingw by myself and then apply to trunk.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6251#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC