From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,dd5f4bee6bfe71bd X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-07 12:58:40 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail From: "Rajanish Calisa" Newsgroups: comp.unix.tru64 References: <301aa829.0111061449.5cb79ce5@posting.google.com> Subject: Re: How to use libcxx.a instead of libcxx.so X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: NNTP-Posting-Host: 1cust114.tnt6.syd2.da.uu.net X-Trace: ozemail.com.au 1005166711 63.34.199.114 (Thu, 08 Nov 2001 07:58:31 EST) NNTP-Posting-Date: Thu, 08 Nov 2001 07:58:31 EST Organization: OzEmail Ltd, Australia Distribution: world Date: Thu, 8 Nov 2001 08:16:54 +1100 Xref: archiver1.google.com comp.unix.tru64:5733 "Bruce Bailey" 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...