<div dir="ltr"><div>Hi,</div><div><br></div>When I run them through c++filt, I see<div><br></div><div>```</div><div><pre style="color:rgb(0,0,0);background-image:initial;background-repeat:initial">$ c<span style="color:rgb(128,128,48)">+</span><span style="color:rgb(128,128,48)">+</span>filt _ZN9OpenBabel5OBMol8NextBondERN9__gnu_cxx17__normal_iteratorIPPNS_6OBBondESt6vectorIS4_SaIS4_EEEE
OpenBabel<span style="color:rgb(128,0,128)">::</span>OBMol<span style="color:rgb(128,0,128)">::</span>NextBond<span style="color:rgb(128,128,48)">(</span>__gnu_cxx<span style="color:rgb(128,0,128)">::</span>__normal_iterator<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>vector<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>allocator<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span><span style="color:rgb(128,128,48)">&amp;</span><span style="color:rgb(128,128,48)">)</span>

$ c<span style="color:rgb(128,128,48)">+</span><span style="color:rgb(128,128,48)">+</span>filt _ZN9OpenBabel5OBMol8NextBondERN11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPPNS_6OBBondENSt6__norm6vectorIS6_SaIS6_EEEEENSt7__debug6vectorIS6_SA_EEEE
OpenBabel<span style="color:rgb(128,0,128)">::</span>OBMol<span style="color:rgb(128,0,128)">::</span>NextBond<span style="color:rgb(128,128,48)">(</span>__gnu_debug<span style="color:rgb(128,0,128)">::</span>_Safe_iterator<span style="color:rgb(128,128,48)">&lt;</span>__gnu_cxx<span style="color:rgb(128,0,128)">::</span>__normal_iterator<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>__norm<span style="color:rgb(128,0,128)">::</span>vector<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>allocator<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>__debug<span style="color:rgb(128,0,128)">::</span>vector<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">,</span> std<span style="color:rgb(128,0,128)">::</span>allocator<span style="color:rgb(128,128,48)">&lt;</span>OpenBabel<span style="color:rgb(128,0,128)">::</span>OBBond<span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span> <span style="color:rgb(128,128,48)">&gt;</span><span style="color:rgb(128,128,48)">&amp;</span><span style="color:rgb(128,128,48)">)</span></pre></div><div>```</div><div><br></div><div>Looks like the difference is related to debug symbols, or separate namespaces being used for debug implementations. </div><div><br></div><div>-Robert</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 1:56 AM, David van der Spoel <span dir="ltr">&lt;<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m trying to link my development branch to OpenBabel but have problems with name mangling.<br>
<br>
In openbabel<br>
% nm libopenbabel.so | grep NextBond<br>
00000000005f4c6a T _ZN9OpenBabel5OBMol8NextBondERN11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPPNS_6OBBondENSt6__norm6vectorIS6_SaIS6_EEEEENSt7__debug6vectorIS6_SA_EEEE <br>
<br>
In gromacs branch<br>
% nm lib/libAlexandria.so | grep NextBond<br>
U _ZN9OpenBabel5OBMol8NextBondERN9__gnu_cxx17__normal_iteratorIPPNS_6OBBondESt6vectorIS4_SaIS4_EEEE<br>
<br>
The compilers are the same in both cases (gcc-4.8.2)<br>
<br>
Any clues why name mangling could be different?<br>
<br>
Thanks!<span class="HOEnZb"><font color="#888888"><br>
-- <br>
David van der Spoel, Ph.D., Professor of Biology<br>
Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>
Box 596, 75124 Uppsala, Sweden. Phone:  <a href="tel:%2B46184714205" value="+46184714205" target="_blank">+46184714205</a>.<br>
<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.se</a>    <a href="http://folding.bmc.uu.se" rel="noreferrer" target="_blank">http://folding.bmc.uu.se</a><br>
-- <br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
</font></span></blockquote></div><br></div>