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