[Boost-bugs] [Boost C++ Libraries] #6251: mingw gcc-4.5.0 compiler error: Undeclared swprintf

Subject: [Boost-bugs] [Boost C++ Libraries] #6251: mingw gcc-4.5.0 compiler error: Undeclared swprintf
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-11 12:50:07


#6251: mingw gcc-4.5.0 compiler error: Undeclared swprintf
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: nasonov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 {{{
 gcc.compile.c++ ..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0x\debug
 \link-static\threading-multi\exception_safety.o
 In file included from
 ..\..\../boost/test/interaction/interaction_based.hpp:27:0,
                  from ..\..\../boost/test/impl/exception_safety.ipp:29,
                  from ..\..\..\libs\test\src\exception_safety.cpp:16:
 ..\..\../boost/lexical_cast.hpp: In member function 'bool
 boost::detail::lexical_stream_limited_src<CharT, Traits,
 RequiresStringbuffer>::shl_float(float, wchar_t*)':
 ..\..\../boost/lexical_cast.hpp:1248:120: error: there are no arguments to
 'swprintf' that depend on a template parameter, so a declaration of
 'swprintf' must be available
 ..\..\../boost/lexical_cast.hpp:1248:120: note: (if you use
 '-fpermissive', G++ will accept your code, but allowing the use of an
 undeclared name is deprecated)
 ..\..\../boost/lexical_cast.hpp: In member function 'bool
 boost::detail::lexical_stream_limited_src<CharT, Traits,
 RequiresStringbuffer>::shl_double(double, wchar_t*)':
 ..\..\../boost/lexical_cast.hpp:1269:122: error: there are no arguments to
 'swprintf' that depend on a template parameter, so a declaration of
 'swprintf' must be available

     "c:/MINGW/bin/g++" -ftemplate-depth-128 -std=c++0x -O0 -fno-inline
 -Wall -pedantic -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o
 "..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0x\debug\link-static
 \threading-multi\exception_safety.o"
 "..\..\..\libs\test\src\exception_safety.cpp"

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6251>
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