Shridhar Daithankar wrote:
On 14 Nov 2002 at 16:19, Mark Scott wrote:Let me know if you (or anyone else) find out anything more about this - I don't know why it works (I'm guessing that inclusion of iostream instantiates a couple of classes and so requires __dso_handle).
>On some libraries I could get away with just removing an unnecessary
>inclusion of from the source, removing the need for the
>library to want __dso_handle. This might be why the simple libraries load.
Hey. That was a one hell of an advise. I kicked iostream out (thankfully I could) and it worked like charm..
I hope libstdc++ gets straight some day. Will keep checking this periodically.
Right now I can afford with no libstdc++ for the time being but may need it in future..
As I said, removing -nostdlib from the link options to g++ was an alternative solution, and did not require removing iostream. __dso_handle was defined as an non-exportable symbol in the library when I did that (instead of an attempted imported symbol).
BTW, I'm not convinced this is a bug in libstdc++ or Mandrake's packaging of it, but the same code and Makefiles worked without problem for both gcc-2.96 and gcc-3.0.4 in Mandrake 8.2
--
Mark Scott
