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 #723 of 723 | Next >
Re: [metamod] MetaMod and libstdc++.so

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 articles that talk about it:

http://www.trilithium.com/johan/2005/06/static-libstdc/
http://pages.cs.wisc.edu/~psilord/blog/2.html

Valve links to libstdc++.a and libgcc_eh.a statically
in HL2. We've run into subtle linking problems with
this in the past. They're rare, but impossible to
debug as they're usually crashes deep in the runtime.

I also worry (perhaps incorrectly) about ELF's
attitude toward symbol resolution. Is it possible for
library A to statically link to the runtime, and for
library B to bind to A's implementation because the
symbols were accidentally exported?

Regards,
--
David Anderson
http://www.bailopan.net/

--- Florian Zschocke <zschocke@...> wrote:

> On Mon, Jan 5, 2009 at 1:43 AM, David Anderson
> <player220101@...> wrote:
>
> > You shouldn't link to libstdc++*.a directly.
>
> Okay, but could you explain the reason?
>
> Thanks,
> Florian
>








Tue Jan 6, 2009 9:25 am

player220101
Offline Offline
Send Email Send Email

Forward
Message #723 of 723 | Next >
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