Boost C++ Libraries: Ticket #13255: mingw build on appveyor uses undefined vsnprintf https://svn.boost.org/trac10/ticket/13255 <p> While building Boost.Random which uses Boost.Test, the build fails on mingw on appveyor (not MinGW-w64 however, that seems to work). </p> <p> PR: <a class="ext-link" href="https://github.com/jeking3/random/pull/1"><span class="icon">​</span>https://github.com/jeking3/random/pull/1</a> </p> <p> Failed Job: <a class="ext-link" href="https://ci.appveyor.com/project/jeking3/random/build/1.0.17-develop/job/n3h2iw03mrebw8wq"><span class="icon">​</span>https://ci.appveyor.com/project/jeking3/random/build/1.0.17-develop/job/n3h2iw03mrebw8wq</a> </p> <p> Specific failure: </p> <pre class="wiki">gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-gnu-5.3.0\release\threadapi-win32\execution_monitor.o In file included from libs\test\src\execution_monitor.cpp:16:0: ./boost/test/impl/execution_monitor.ipp: In function 'void boost::detail::report_error(boost::execution_exception::error_code, const boost::exception*, const char*, char**)': ./boost/test/impl/execution_monitor.ipp:216:84: error: 'vsnprintf' was not declared in this scope # define BOOST_TEST_VSNPRINTF( a1, a2, a3, a4 ) vsnprintf( (a1), (a2), (a3), (a4) ) ^ ./boost/test/impl/execution_monitor.ipp:241:5: note: in expansion of macro 'BOOST_TEST_VSNPRINTF' BOOST_TEST_VSNPRINTF( buf, sizeof(buf)-1, format, *args ); ^ "g++" -O3 -finline-functions -Wno-inline -Wall -pedantic -march=i686 -m32 -Wno-variadic-macros -std=c++03 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_THREAD_DISABLED -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_TEST_DYN_LINK=1 -DBOOST_TIMER_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2\libs\test\build\gcc-mingw-gnu-5.3.0\release\threadapi-win32\execution_monitor.o" "libs\test\src\execution_monitor.cpp" ...failed gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-gnu-5.3.0\release\threadapi-win32\execution_monitor.o... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13255 Trac 1.4.3 Raffi Enficiaud Thu, 28 Dec 2017 19:23:34 GMT <link>https://svn.boost.org/trac10/ticket/13255#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13255#comment:1</guid> <description> <p> Would this <a class="ext-link" href="https://stackoverflow.com/a/43405963/1617295"><span class="icon">​</span>https://stackoverflow.com/a/43405963/1617295</a> work for you? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Wed, 07 Nov 2018 06:16:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13255#comment:2 https://svn.boost.org/trac10/ticket/13255#comment:2 <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">fixed</span> </li> </ul> <p> Should be fixed through GH PR 145 </p> Ticket