Boost C++ Libraries: Ticket #4682: Compile issue with putenv using gcc-mingw-4.5.0 C++0x https://svn.boost.org/trac10/ticket/4682 <p> Using gcc-mingw-4.5.0 C++0x </p> <p> After </p> <pre class="wiki">&gt; cd libs/test/build &gt; bjam toolset=gcc cxxflags="-std=c++0x" </pre><p> I get the following compile error </p> <pre class="wiki">gcc.compile.c++ ..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0\debug\link-static\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:31, from ..\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 "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -g -std=c++0x -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o "..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0\debug\link-static\unit_test_parameters.o" "..\src\unit_test_parameters.cpp" ...failed gcc.compile.c++ ..\..\..\bin.v2\libs\test\build\gcc-mingw-4.5.0\debug\link-static\unit_test_parameters.o... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4682 Trac 1.4.3 Vladimir Prus Wed, 20 Oct 2010 06:10:06 GMT severity changed https://svn.boost.org/trac10/ticket/4682#comment:1 https://svn.boost.org/trac10/ticket/4682#comment:1 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> Given that you're using experimental complication mode, this is not a showstopper for 1.45. Anyway, how about providing a patch? </p> Ticket viboes Wed, 20 Oct 2010 11:04:34 GMT <link>https://svn.boost.org/trac10/ticket/4682#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4682#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4682#comment:1" title="Comment 1">vladimir_prus</a>: </p> <blockquote class="citation"> <p> Given that you're using experimental complication mode, this is not a showstopper for 1.45. Anyway, how about providing a patch? </p> </blockquote> <p> I have moved to lightweight_test so for me this is no more a show-stopper. I have no time now to provide a pact. </p> <p> Best, Vicente </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 05 Nov 2012 09:45:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4682#comment:3 https://svn.boost.org/trac10/ticket/4682#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> You do not need to compile boost.test library itself in std=c++0x mode. Compiler removes extensions and sticks to ansi. You can use std=gnu++0x though. </p> Ticket