You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "Rafael Sousa (Ext_Altior)" <Ra...@siemens.com> on 2005/11/19 00:22:14 UTC
Can the Makefile be changed to compile directly only one library named libxerces-c.so ?
Hi all!
How can I change the name of the library that results from compiling
Xerces?
When I compile Xerces, I get a library named libxerces-c.so.27.0, and 2
symbolic links referencing this library, named libxerces-c.so.27 and
libxerces-c.so. But why is this? Can't I just compile it directly to a
library named libxerces-c.so ?
This question might seem strange, but apparently just renaming the file
(from libxerces-c.so.27.0 to libxerces-c.so.27), isn't enough. When I
try to run a program that references the renamed libxerces-c.so (whose
makefile has -lxerces-c), I'm getting errors that ask for
libxerces-c.so.27...
Thanks
Rafael Sousa
Re: Can the Makefile be changed to compile directly only one library
named libxerces-c.so ?
Posted by David Bertoni <db...@apache.org>.
Rafael Sousa (Ext_Altior) wrote:
> Hi all!
>
> How can I change the name of the library that results from compiling
> Xerces?
You will probably have to modify the Makefiles by hand.
>
> When I compile Xerces, I get a library named libxerces-c.so.27.0, and 2
> symbolic links referencing this library, named libxerces-c.so.27 and
> libxerces-c.so. But why is this? Can't I just compile it directly to a
> library named libxerces-c.so ?
You don't state your platform, but this is a very typical naming scheme
for ELF executables.
>
> This question might seem strange, but apparently just renaming the file
> (from libxerces-c.so.27.0 to libxerces-c.so.27), isn't enough. When I
> try to run a program that references the renamed libxerces-c.so (whose
> makefile has -lxerces-c), I'm getting errors that ask for
> libxerces-c.so.27...
No, because the SONAME "libxerces-c.so.27" is embedded in the
executable. I believe this is changing for 3.0, but I'm not sure what
the state of that branch is.
Dave