<div dir="ltr">I've used TagLib and C++11 successfully together, however I used the taglib2 branch and not the 1.9.1 release.  Some of my classes using TagLib are at <a href="https://github.com/sbooth/SFBAudioEngine/tree/master/Metadata">https://github.com/sbooth/SFBAudioEngine/tree/master/Metadata</a> if you'd like to take a look.<div><br></div><div>Stephen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 3, 2015 at 8:45 AM, Ibrahim Sha'ath <span dir="ltr"><<a href="mailto:ibrahimshaath@gmail.com" target="_blank">ibrahimshaath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If no-one has any idea about this issue specifically, has anyone successfully used C++11 for a TagLib 1.9.1 project?<div><br></div><div>Please excuse the bump but I've had to retract a release for this segfault.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 31 May 2015 at 18:03, Ibrahim Sha'ath <span dir="ltr"><<a href="mailto:ibrahimshaath@gmail.com" target="_blank">ibrahimshaath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Stephen. Unfortunately that had no further effect on the problem.<div><br></div><div>Does the top of that stack look familiar to anyone who knows the codebase?</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 31 May 2015 at 13:46, Stephen F. Booth <span dir="ltr"><<a href="mailto:me@sbooth.org" target="_blank">me@sbooth.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I experienced problems like this when my app and TagLib were compiled with different C++ standard libraries.  I'm not sure if it matters anymore on Yosemite but since you're using C++11 I would make sure you're passing -stdlib=libc++ to both build processes.<div><br></div><div>Stephen</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sun, May 31, 2015 at 5:16 AM, Ibrahim Sha'ath <span dir="ltr"><<a href="mailto:ibrahimshaath@gmail.com" target="_blank">ibrahimshaath@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I have also tried modifying CMakeLists with<div><font face="monospace, monospace">set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")</font></div><div>to ensure consistency of flags with my app build, but that had no effect.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Anyone have any ideas?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2015 at 12:58, Ibrahim Sha'ath <span dir="ltr"><<a href="mailto:ibrahimshaath@gmail.com" target="_blank">ibrahimshaath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I have the following code to write to the Grouping field in an MP4 file:</div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">StringList</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">sl</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">String</span><span style="color:rgb(0,0,0)">("data"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">String</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">UTF8</span><span style="color:rgb(0,0,0)">));</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">mp4File</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">tag</span><span style="color:rgb(0,0,0)">()-></span><span style="color:rgb(0,0,0)">itemListMap</span><span style="color:rgb(0,0,0)">().</span><span style="color:rgb(0,0,0)">insert</span><span style="color:rgb(0,0,0)">(</span>"\251grp"<span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">sl</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">mp4File</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">save</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>Where mp4file is a TagLib::MP4::File. This code was working fine but now crashes with a segfault; I've narrowed the change down to when I switched my project to C++11 to rid myself of Boost.</div><div><br></div><div>The top of the crashed thread's stack (in OSX) reads as follows:</div><div><div><font face="monospace, monospace">0 ... std::__1::__tree<std::__1::__value_type<TagLib::String, TagLib::MP4::Item>, std::__1::__map_value_compare<TagLib::String, std::__1::__value_type<TagLib::String, TagLib::MP4::Item>, std::__1::less<TagLib::String>, true>, std::__1::allocator<std::__1::__value_type<TagLib::String, TagLib::MP4::Item> > >::__insert_node_at(std::__1::__tree_node_base<void*>*, std::__1::__tree_node_base<void*>*&, std::__1::__tree_node_base<void*>*) + 88</font></div><div><font face="monospace, monospace">1 ... std::__1::map<TagLib::String, TagLib::MP4::Item, std::__1::less<TagLib::String>, std::__1::allocator<std::__1::pair<TagLib::String const, TagLib::MP4::Item> > >::operator[](TagLib::String const&) + 205</font></div><div><font face="monospace, monospace">2 ... TagLib::Map<TagLib::String, TagLib::MP4::Item>::insert(TagLib::String const&, TagLib::MP4::Item const&) + 71</font></div><div><font face="monospace, monospace">3   ...</font></div></div><br>Has anyone had a similar experience? Is this expected with C++11, or is there some way around it?<div><br></div><div>Any help appreciated.</div><div>Regards</div><span><font color="#888888"><div>Ibrahim</div></font></span></div>
</blockquote></div><br></div></div></div></div></div>
<br></div></div>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>