[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> I thought dynamic linking was the default. My ldd output (compiling with
> g++/gcc 2.96) looks like this:
>
>         libz.so.1 => /usr/lib/libz.so.1 (0x40031000)
>         libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40040000)
>         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
> (0x40083000)
>         libm.so.6 => /lib/i686/libm.so.6 (0x400c6000)
>         libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
>         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400e8000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>

My understanding, still incomplete though it is, is that for the c++ stuff
dynamic linking is not the default since name mangling can get in the way.
Someone on another list suggested I compile using gcc instead of g++ and
explicitly tell it to use libstdc++. You seem to have solved my problem,
though: can you tell me what your compiler cammand line was for generating
that binary?

Are you building non-GPL code for binaery distrobution as well?

thanks for your help!

	bjorn


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00345" href="msg00345.html">[ale] c++, dynamic linking etc.</a></strong>
<ul><li><em>From:</em> astewart at layton-graphics.com (Alan Stewart)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00305" href="msg00305.html">[ale] c++, dynamic linking etc.</a></strong>
<ul><li><em>From:</em> bjorn at sccs.swarthmore.edu (Bjorn Dittmer-Roche)</li></ul></li>
<li><strong><a name="00333" href="msg00333.html">[ale] c++, dynamic linking etc.</a></strong>
<ul><li><em>From:</em> astewart at layton-graphics.com (Alan Stewart)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00337.html">[ale] update on my RAID problems from yesterday.</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00339.html">[ale] SuSe and Scrollwheel</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00333.html">[ale] c++, dynamic linking etc.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00345.html">[ale] c++, dynamic linking etc.</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00338"><strong>Date</strong></a></li>
<li><a href="threads.html#00338"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>