delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/16:35:02

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: trouble compiling c++
Date: 24 Jun 1997 12:34:06 GMT
Organization: Oxford University, England
Lines: 16
Message-ID: <5ooeru$j04@news.ox.ac.uk>
References: <199706241043 DOT KAA12868 AT mx2 DOT rmplc DOT co DOT uk>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Liam (marl AT rmplc DOT co DOT uk) wrote:
: Art S. Kagel <kagel AT ns1 DOT bloomberg DOT com> wrote:
: > You do not show the comand line that you used.  I suspect that you named 
: > your 'hello' program hello.c even though it contains C++ code and the 'C'

: > parser does not know what to do with it. You probably should have called 
: > the file hello.cc.
: Can't it tell the difference between C and C++ code
: with out relying on the extension of a file?

No. It's not practical. Can't you just use the right extension on your
file?

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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