home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19855 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

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