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

Subject: [Boost-bugs] [Boost C++ Libraries] #6252: mingw gcc-4.5.0 compiler error : undeclared swprintf
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-11 12:53:45


#6252: mingw gcc-4.5.0 compiler error : undeclared swprintf
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: mingw swprintf |
------------------------------+---------------------------------------------
 {{{
 gcc.compile.c++ ..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0x\debug
 \link-static\threading-multi\unit_test_parameters.o
 In file included from
 ..\..\../boost/test/utils/runtime/cla/dual_name_parameter.hpp:19:0,
                  from
 ..\..\../boost/test/impl/unit_test_parameters.ipp:32,
                  from ..\..\..\libs\test\src\unit_test_parameters.cpp:16:
 ..\..\../boost/test/utils/runtime/config.hpp: In function 'void
 boost::runtime::putenv_impl(boost::runtime::cstring,
 boost::runtime::cstring)':
 ..\..\../boost/test/utils/runtime/config.hpp:95:51: error: 'putenv' was
 not declared in this scope
 In file included from
 ..\..\../boost/test/utils/runtime/interpret_argument_value.hpp:28:0,
                  from
 ..\..\../boost/test/utils/runtime/cla/argument_factory.hpp:25,
                  from
 ..\..\../boost/test/utils/runtime/cla/typed_parameter.hpp:25,
                  from
 ..\..\../boost/test/utils/runtime/cla/basic_parameter.hpp:21,
                  from
 ..\..\../boost/test/utils/runtime/cla/named_parameter.hpp:21,
                  from
 ..\..\../boost/test/utils/runtime/cla/dual_name_parameter.hpp:21,
                  from
 ..\..\../boost/test/impl/unit_test_parameters.ipp:32,
                  from ..\..\..\libs\test\src\unit_test_parameters.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\unit_test_parameters.o"
 "..\..\..\libs\test\src\unit_test_parameters.cpp"

 ...failed gcc.compile.c++ ..\..\..\bin.v2\libs\test\build\gcc-
 mingw-4.5.0x\debug\link-static\threading-multi\unit_test_parameters.o...
 }}}

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