Mail Archives: djgpp/1997/08/04/22:33:23

From: mschulter AT DOT value DOT net (M. Schulter)
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: DJGPP G++ compilation error
Followup-To: comp.lang.c++,comp.os.msdos.djgpp
Date: 4 Aug 1997 20:18:11 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 33
Message-ID: <5s5de4$956$>
References: <33cfa754 DOT 4682541 AT news DOT pacific DOT net DOT sg> <33d9ec17 DOT 4559159 AT news DOT inlink DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

mlinvle AT inlink DOT com wrote:
: On Sat, 19 Jul 1997 00:26:45 GMT, garyt AT pacific DOT net DOT sg (Gary Tan)
: wrote:
: >I can't seem to compile my .cpp programs
: I *think* you need to rename .cpp to .cc (although, again, look though
: the readme file *and* the djgppfaq for further info...)

Hi, there.

While .cc should work, and might be the most "standard" form, the gcc docs
indicate that .C, .cc, .cpp, or .cxx are all permissible extensions for
C++ source code files.

Note that a command line with uppercase .C as an extension, say


identifies the file as C++, while


is presumed to be a C file.

While DOS may not be case-sensitive, DJGPP's GCC follows UNIX conventions
in definitely noticing such distinctions <grin>.

Most respectfully,

Margo Schulter
mschulter AT value DOT net

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019