* How to use libcxx.a instead of libcxx.so
@ 2001-11-06 22:49 Bruce Bailey
2001-11-07 21:16 ` Rajanish Calisa
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Bailey @ 2001-11-06 22:49 UTC (permalink / raw)
Hi
How can I have an executable use libcxx.a instead of trying to load
libcxx.so? I have a program created with cxx version 6.3 and I need
to have it run on a client system that may have the .so's from version
6.1.
I was hoping I could simply link the 6.3 library directly into the
executable for the time being. Unfortunately, the loaded insists on
trying to load libcxx.so as well.
Any help would be appreciated.
Thanks,
Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use libcxx.a instead of libcxx.so
2001-11-06 22:49 How to use libcxx.a instead of libcxx.so Bruce Bailey
@ 2001-11-07 21:16 ` Rajanish Calisa
2001-11-14 7:10 ` Rob Nichols
0 siblings, 1 reply; 3+ messages in thread
From: Rajanish Calisa @ 2001-11-07 21:16 UTC (permalink / raw)
"Bruce Bailey" <bjb@plaza.ds.adp.com> wrote in message
news:301aa829.0111061449.5cb79ce5@posting.google.com...
> Hi
>
> How can I have an executable use libcxx.a instead of trying to load
> libcxx.so? I have a program created with cxx version 6.3 and I need
> to have it run on a client system that may have the .so's from version
> 6.1.
>
> I was hoping I could simply link the 6.3 library directly into the
> executable for the time being. Unfortunately, the loaded insists on
> trying to load libcxx.so as well.
>
> Any help would be appreciated.
>
There are two ways of solving this problem.
1. You have mentioned this above, use libcxx.a. The linker/compiler driver
has an option to link against a static version. You need to provide this
in the link line just before -lcxx.
2. The C++ 6.3 kit will come with a tar file of the form CXXREDIST*. This
is the part of the compiler that can be redistributed, i.e. installed on
all machines that your application is installed on.
rajanish...
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: How to use libcxx.a instead of libcxx.so
2001-11-07 21:16 ` Rajanish Calisa
@ 2001-11-14 7:10 ` Rob Nichols
0 siblings, 0 replies; 3+ messages in thread
From: Rob Nichols @ 2001-11-14 7:10 UTC (permalink / raw)
"Rajanish Calisa" <rcalisa@ozemail.com.au> writes:
> "Bruce Bailey" <bjb@plaza.ds.adp.com> wrote in message
> news:301aa829.0111061449.5cb79ce5@posting.google.com...
> > libcxx.so? I have a program created with cxx version 6.3 and I need
> > to have it run on a client system that may have the .so's from version
> > 6.1.
[snip]
> 2. The C++ 6.3 kit will come with a tar file of the form CXXREDIST*. This
> is the part of the compiler that can be redistributed, i.e. installed on
> all machines that your application is installed on.
If installing 6.3 libs on the new machine causes problems (political
or technical), take a look at the -rpath option of ld (it is mentioned
on the cxx man page, but a little more information can be found on
ld's man page). I've used environment variables before, like:
-rpath '$MY_APP_LIB'
Later,
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-14 7:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-06 22:49 How to use libcxx.a instead of libcxx.so Bruce Bailey
2001-11-07 21:16 ` Rajanish Calisa
2001-11-14 7:10 ` Rob Nichols
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox