home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!news.uni-stuttgart.de!news
- From: KOCHER@nvdv.e-technik.uni-stuttgart.dbp.de (HARTMUT KOCHER)
- Newsgroups: comp.lang.c++
- Subject: Re: Was: Template Use <sigh>
- Date: 25 Jan 1993 10:12:34 GMT
- Organization: University of Stuttgart, IND (Germany)
- Lines: 30
- Distribution: world
- Message-ID: <1k0eeiINNev9@info2.rus.uni-stuttgart.de>
- References: <1jp50dINNk34@rs6000.bham.ac.uk> <1jpafuINNjrm@rs6000.bham.ac.uk>
- NNTP-Posting-Host: nvdv01.ind.e-technik.uni-stuttgart.de
- X-News-Reader: VMS NEWS 1.24
- In-Reply-To: pickerig@eee.bham.ac.uk's message of 22 Jan 1993 17:22:06 GMT
-
- In <1jpafuINNjrm@rs6000.bham.ac.uk> pickerig@eee.bham.ac.uk writes:
-
- > Further info to my post:
- >
- > 1/ I am using AT&T C++ V3.0.1
- > 2/ The problem lies in using archived libraries it seems.
- >
- > Guy.
- >
- > --
- > +--------------------------------+-----------------------------------------+
- > | Guy Pickering | School of Electronic & Electrical Eng, |
- > | E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham, |
- > | Tel: (021) 414 4340 | Edgbaston, Birmingham. B15 2TT. |
- > +--------------------------------+-----------------------------------------+
- >
- >
- Hi Guy,
- if all your files are in different directories, the compiler/linker might
- not find the right repository to use. When you compile the file that uses
- your template class, the compiler will write some additional information
- in the repository, e.g., the name of the file which defines your template, etc.
- This information is needed during link time to instantiate the templates.
- If your files are in different directories, your compiler might not be able
- to locate the right repository. I use the -ptr switch to list all repositories
- of all directories that I use (Cfront 3.01 on HP WS).
-
- Hope this helps
- Hartmut
-
-