From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,928f8bee559cdab2 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-02 05:46:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail From: "Kenneth Block" Newsgroups: comp.unix.tru64 References: <1004614139@f1.n7600.z242.fido.de> Subject: Re: CXX compiler problem X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Fri, 2 Nov 2001 08:45:53 -0500 NNTP-Posting-Host: 16.47.194.7 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1004708754 16.47.194.7 (Fri, 02 Nov 2001 05:45:54 PST) NNTP-Posting-Date: Fri, 02 Nov 2001 05:45:54 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:5633 "Andreas Unterkircher" wrote in message news:Pine.SGI.4.40.0111011441110.7631-100000@trane.ethz.ch... > > I'm not sure whether this is the source of your problem but I remember > that I once also had problems with cxx's template instantiaton. I wanted > to link a library to my C++ program and I also got messages similar to > your messages. The problem was that the library and the program did not > use the same cxx_repository directory. Are you sure that you always use > the same cxx_repository ? You can control it with the -ptr flag. > > HTH, > Andreas Or you can just link you templates staticly into every module that uses them. This is what GCC does. There are two problems with doing this. 1) This can cause you executable to become large. 2) Static data that should have only a single copy will be duplicated. If gcc is your compiler of choice, you can do "-std gnu" to get Compaq C++ to act more like it. If you prefer a more ANSI/ISO compliant compiler, but want templates compiled staticly, you can do "-tlocal".