--- In metamod@yahoogroups.com, "Florian Zschocke" <zschocke@...> wrote:
>
> 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
>
Hey thanks for your reply.
When I use gcc instead of g++ I get the following error
from HLDS:
LoadLibrary failed on ./cstrike/dlls/mymodule.so: Undefined symbol:
"__gxx_personality_v0"
And one other thing I recognized: MetaMod does not have the dependency
"libgcc_s.so.1". Which library is that? Is this the C-Standard Library?
And how can I link the libstdc++.a statically (I mean the link
parameters for linking).
Happy new year,
dieterpeter42