home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15964 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!garrot.DMI.USherb.CA!garrot!dechc00
  3. From: dechc00@tohi.DMI.USherb.Ca (CHRISTIAN DECHAMPLAIN)
  4. Subject: where do templates go?
  5. Message-ID: <DECHC00.92Nov9082600@tohi.DMI.USherb.Ca>
  6. Lines: 18
  7. Sender: usenet@DMI.USherb.CA (Pour courrier Usenet)
  8. Nntp-Posting-Host: tohi
  9. Organization: Universite de Sherbrooke -- departement de Mathematiques et
  10.     d'Informatique
  11. Date: Mon, 9 Nov 1992 13:26:03 GMT
  12.  
  13.  
  14. I'm using g++.  Suppose I'm using many compilation modules.  Where do the
  15. templates go?  In the files with the declarations, in the files with the
  16. definitions or just everywhere?  G++ does not seem to put them anywhere!
  17. The ARM talks about a way to tell the compiler where you want them to be put,
  18. where you want your templates to be expanded.  How do you do that with g++
  19. specificaly.  I've searched for command line options and I've tried the
  20. definition and implementation pragmas but with no success.  I've even once
  21. managed to have some templates functions in my .o files but the linker still
  22. complained that they weren't there.  Now I think that templates don't realy
  23. work with g++ v2.3.1.
  24.  
  25. Thanks a lot for your help.
  26. --
  27. Christian Dechamplain|
  28. (819) 563-8951       |
  29. dechc00@dmi.usherb.ca|
  30. ----------------------
  31.