Search the web
Sign In
New User? Sign Up
metamod · Metamod Half-Life Utility Mod
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
MetaMod and libstdc++.so   Message List  
Reply | Forward Message #719 of 723 |
Re: MetaMod and libstdc++.so

--- 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




Fri Jan 2, 2009 11:19 am

dieterpeter42
Offline Offline
Send Email Send Email

Forward
Message #719 of 723 |
Expand Messages Author Sort by Date

Hello everyone, I have a question about linux and metamod. MetaMod does not need to use libstdc++.so (metamod_i386.so executable)? Is that right? I have made...
dieterpeter42
Offline Send Email
Jan 1, 2009
5:45 pm

On Thu, Jan 1, 2009 at 2:41 PM, dieterpeter42 <dieterpeter42@...> wrote: Hi! ... Metamod does not need the Standard C++ library since we use no ...
Florian Zschocke
zschocke@...
Send Email
Jan 1, 2009
10:14 pm

... 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...
dieterpeter42
Offline Send Email
Jan 2, 2009
3:45 pm

... Yes, uhm, this might be since newer gcc/glibc combinations. I'm not sure but I think this wasn't a problem with older versions. So you might have to link...
Florian Zschocke
zschocke@...
Send Email
Jan 2, 2009
4:07 pm

You shouldn't link to libstdc++*.a directly. One way to get around C++ linkage errors when invoking gcc is to reimplement a few choice functions: ...
David Anderson
player220101
Offline Send Email
Jan 5, 2009
12:43 am

... Okay, but could you explain the reason? Thanks, Florian...
Florian Zschocke
zschocke@...
Send Email
Jan 5, 2009
10:08 am

If you're not using C++ features maybe it's okay. I guess the risk is that multiple copies of the runtime might not play well with each other. Here's two...
David Anderson
player220101
Offline Send Email
Jan 6, 2009
9:26 am
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help