home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17895 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.3 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!wupost!cs.utexas.edu!torn!news.ccs.queensu.ca!kirkwood
  2. From: kirkwood@qucis.queensu.ca (Scott Kirkwood)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Survey: File Extension
  5. Message-ID: <Bz80Bu.HI4@knot.ccs.queensu.ca>
  6. Date: 13 Dec 92 23:09:30 GMT
  7. References: <1gb1h0INNle2@tsavo.hks.com> <78146@hydra.gatech.EDU> <stanleyr.724172017@kramden>
  8. Sender: news@knot.ccs.queensu.ca (Netnews control)
  9. Organization: Computing & Information Science, Queen's University at Kingston
  10. Lines: 18
  11.  
  12. I use DOS with GCC and you *can* use .C to mean C++.  When you call
  13. the program gcc on the command line, it has no problem differentiating
  14. between .C and .c
  15.  
  16. This never occured to me until recently.  Although my make files have
  17. those silly C=.C, O=.O, H=.H definitions you can fairly safely keep
  18. your files with the .C files and have the Makefile tell which ones
  19. are C files and which are C++.  
  20.  
  21. For Borland C++ you can just tell it that all extensions are C++
  22. extension instead of just .CPP.  
  23.  
  24. The only problem I see is that when you do a DIR you have no idea
  25. without list the file, whether it's C++ or C.  
  26.  
  27. BTW: these are the extensions I've come across: .C, .c, .cxx,
  28. .cp (Macintosh), .cpp, .cc, .c++, .C++, .h, .H, and .hxx (off the top
  29. of my head).
  30.