Boost C++ Libraries: Ticket #11841: advapi does not exist on windows phone
https://svn.boost.org/trac10/ticket/11841
<p>
Boost 1.59.0 introduces a hard dependency on advapi32.lib in "boost/uuid/see_rng.hpp" which does not exist on windows phone. This makes this library unusable for all windows phone builds.
</p>
en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/11841
Trac 1.4.3erika@…Thu, 06 Apr 2017 12:24:36 GMT
<link>https://svn.boost.org/trac10/ticket/11841#comment:1 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11841#comment:1</guid>
<description>
<p>
This is still valid for 1.62.0
</p>
</description>
<category>Ticket</category>
</item>
<item>
<author>James E. King, III <jking@…></author>
<pubDate>Thu, 10 Aug 2017 16:44:38 GMT</pubDate>
<title/>
<link>https://svn.boost.org/trac10/ticket/11841#comment:2 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11841#comment:2</guid>
<description>
<p>
If you use either of the constructors of basic_random_generator which take a reference or a pointer to a <a class="missing wiki">UniformRandomNumberGenerator</a>, those do not call detail::seed and therefore should be compatible. Given I don't currently have access to a windows phone build environment, do you have any local mods (perhaps similar to the _WIN32_WCE ifdefs) that resolve the issue?
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>James E. King, III</dc:creator>
<pubDate>Sun, 27 Aug 2017 18:36:55 GMT</pubDate>
<title>owner, milestone changed
https://svn.boost.org/trac10/ticket/11841#comment:3
https://svn.boost.org/trac10/ticket/11841#comment:3
<ul>
<li><strong>owner</strong>
changed from <span class="trac-author">Andy Tompkins</span> to <span class="trac-author">James E. King, III</span>
</li>
<li><strong>milestone</strong>
<span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.66.0</span>
</li>
</ul>
<p>
I believe if you use the following code it will resolve your issue, please try and see:
</p>
<p>
boost::mt19937 ran;
boost::uuids::uuid uuid = boost::uuids::random_generator(ran)();
</p>
<p>
Further, it looks like Windows Phone is essentially dead now, so I am resolving this as wontfix. Feel free to reopen (with supporting comment, of course) if you disagree or you are not able to work around it.
</p>
TicketJames E. King, IIISun, 27 Aug 2017 18:37:03 GMTstatus changed; resolution set
https://svn.boost.org/trac10/ticket/11841#comment:4
https://svn.boost.org/trac10/ticket/11841#comment:4
<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>
TicketanonymousMon, 04 Sep 2017 23:30:50 GMTstatus changed; resolution deleted
https://svn.boost.org/trac10/ticket/11841#comment:5
https://svn.boost.org/trac10/ticket/11841#comment:5
<ul>
<li><strong>status</strong>
<span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span>
</li>
<li><strong>resolution</strong>
<span class="trac-field-deleted">wontfix</span>
</li>
</ul>
TicketJames E. King, IIIMon, 04 Sep 2017 23:32:29 GMT
<link>https://svn.boost.org/trac10/ticket/11841#comment:6 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11841#comment:6</guid>
<description>
<p>
This issue was reported again here:
</p>
<p>
<a class="ext-link" href="https://github.com/boostorg/uuid/issues/24"><span class="icon"></span>https://github.com/boostorg/uuid/issues/24</a>
</p>
<p>
The workaround provided was not sufficient so I submitted a PR to modify how we generate entropy for the default random generator constructor.
</p>
<p>
<a class="ext-link" href="https://github.com/boostorg/uuid/pull/25"><span class="icon"></span>https://github.com/boostorg/uuid/pull/25</a>
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>James E. King, III</dc:creator>
<pubDate>Thu, 21 Sep 2017 22:21:15 GMT</pubDate>
<title/>
<link>https://svn.boost.org/trac10/ticket/11841#comment:7 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11841#comment:7</guid>
<description>
<p>
Given this is already being tracked in github issues I am going to resolve this one. Please follow it in github issues.
</p>
<p>
<a class="ext-link" href="https://github.com/boostorg/uuid/issues/24"><span class="icon"></span>https://github.com/boostorg/uuid/issues/24</a>
</p>
<p>
Current plans are to get boostorg/winapi to be UWP compatible, and then to update boost::random_device to be UWP compatible (and make the library header-only too), and then we won't need seed_rng any more in uuid.
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>James E. King, III</dc:creator>
<pubDate>Thu, 21 Sep 2017 22:21:32 GMT</pubDate>
<title>status changed; resolution set
https://svn.boost.org/trac10/ticket/11841#comment:8
https://svn.boost.org/trac10/ticket/11841#comment:8
<ul>
<li><strong>status</strong>
<span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span>
</li>
<li><strong>resolution</strong>
→ <span class="trac-field-new">duplicate</span>
</li>
</ul>
Ticket