From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3e178fe779c1c14e X-Google-Attributes: gidfee84,public From: Ken Block USG Subject: Re: __cxx_v60_dispatch__X4need3new8libcxxso Date: 1999/01/21 Message-ID: <36A79BBE.B36F7568@zk3.dec.com>#1/1 X-Deja-AN: 435373558 References: <787j8l$ng9$1@nnrp1.dejanews.com> <787pce$tgd$1@nnrp1.dejanews.com> <36A7876A.54D6558@zk3.dec.com> Content-Type: multipart/mixed; boundary="------------42958D629F337B657066889C" Organization: CTG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------42958D629F337B657066889C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [Fwd: __cxx_v60_dispatch__X4need3new8libcxxso] Date: Thu, 21 Jan 1999 16:24:16 -0500 From: Ken Block USG To: rceci@master.adams.com, Kenneth Block References: 1 , 2 No, you can link your programs using "cc", we recommend using "cxx" because we encapsulate the knowledge of how to link correctly there. If you do a "cxx -v" on a link, you will see the command line we pass on to "cc" for linking. You can then take this command line and use it yourself. When creating the instructions for your users, you will need to use this as a guide. See section 1.2 of the using guide: 1.2 Linking a DIGITAL C++ Program DIGITAL C++ uses cc to invoke the ld linker to generate code. Always use the cxx command to invoke the linker. Linking through the cxx command ensures that all the necessary link options are passed to the ld linker. If your DIGITAL C++ program is not linked properly, some static objects will not be initialized at program startup. If a module is built using DIGITAL C++ Version 6.n, it must be linked with the Version 6.n library. If you choose to use the ld linker directly, you might need to modify your ld command whenever you install a new version of the DIGITAL C++ compiler or the DIGITAL UNIX operating system. After the installation, follow these steps: 1.Invoke the cxx command and specify the -v option to display the ld command in use. 2.Compare this ld command with your ld command and make any necessary changes. If you are using templates, you must modify the -ld command by replacing the -input argument with a list of your template instantiation object files. The replacement string is normally cxx_repository/*.o. To use automatic template instantiation, you must link with cxx. See the cxx(1) and the ld(1) reference pages for more information. Rob Cecil wrote: > Ken, > > glad you are cruising the news. Indeed I had hardcoded "-L/usr/shlib" in a few of > my makefiles that build libraries. I am rebuilding right now. > > Info: > I am linking my libraries (~ 20 ) with cxx, but linking my exe with cc. My exe > contains c, c++ and fortran code. We allow our customers to relink the executable > to include custom user (c or fortran) objects, and really do not want to requiire > customers to purchase cxx just to do that. I have been successful in earlier > versions of our program to link everything with cc, but that was using objects > generated using cxx 5.4, and the 5.4 runtime. Do you suspect that I will now start > having problems, because I am using 6.1? > > Thanks > Rob --------------42958D629F337B657066889C Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Kenneth Block Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Kenneth Block n: Block;Kenneth org: CTG C/C++ Compiler adr: 110 Spit Brook Road;;M/S ZKO3-2/W02;Nashua;NH;03062;USA email;internet: block@zk3.dec.com tel;work: 603-884-2819 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------42958D629F337B657066889C--