On Thu, Jan 1, 2009 at 2:41 PM, dieterpeter42 <dieterpeter42@...> wrote:
Hi!
> How can I link my module to not
> have to need libstdc++.so like metamod?
Metamod does not need the Standard C++ library since we use no
constructs from it. We thus link with gcc instead of g++ which
prevents automatic linking against libstdc++.
If you do need the Standard C++ library because you are using it, you
could try linking against it statically. This is what we do with Admin
Mod. There we do link with g++ but with options -nodefaultlibs -lc
-lgcc and link the static libstdc++.a archive.
Note, that both have been compiled with older gcc versions so options
might have changed meanwhile.
Hope that helps and a Happy New Year!
Florian