Shared libraries nightmare :-(
From: Carlos Moreno (moreno_at_mochima_dot_com_at_xx.xxx)
Date: 05/29/05
- Next message: Tauno Voipio: "Re: unexpected abstraction penalty in C++"
- Previous message: alex goldman: "Re: unexpected abstraction penalty in C++"
- Next in thread: Erik de Castro Lopo: "Re: Shared libraries nightmare :-("
- Reply: Erik de Castro Lopo: "Re: Shared libraries nightmare :-("
- Reply: Paul Pluzhnikov: "Re: Shared libraries nightmare :-("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 May 2005 16:20:47 -0400
Hi,
After checking out the Libraries HOWTO and some (old) postings on
the subject, I'm still struggling with this.
I have a library that I created (in C++) for my own use. Since the
library is intended to be used by many different applications on
multi-user Linux servers, I compiled the whole thing as a shared
library, and copied a bunch of .h files to /usr/include (and also
copied the .so file to /usr/lib)
Now, I just made some improvements that break binary compatibility.
I compiled it, and as soon as I run one of the old, already-compiled
applications, hell breaks loose (well, ok, I just get a "relocation
error: undefined symbol: _ZN10etcetcetc_ )
Is there a way that I can solve the problem cleanly?
Right now, the only obvious solution that comes to mind is to forget
about the shared stuff (both shared library and the .h files) and
use the new version as a completely local and statically-compiled
fragment of code.
Is there a better way? Could I create a new version and have things
more or less automatically do the right thing?
Thanks,
Carlos
--
- Next message: Tauno Voipio: "Re: unexpected abstraction penalty in C++"
- Previous message: alex goldman: "Re: unexpected abstraction penalty in C++"
- Next in thread: Erik de Castro Lopo: "Re: Shared libraries nightmare :-("
- Reply: Erik de Castro Lopo: "Re: Shared libraries nightmare :-("
- Reply: Paul Pluzhnikov: "Re: Shared libraries nightmare :-("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|