From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30448 invoked by alias); 25 Feb 2004 16:53:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30439 invoked from network); 25 Feb 2004 16:53:30 -0000 Received: from unknown (HELO postoffice2.mail.cornell.edu) (132.236.56.10) by sources.redhat.com with SMTP; 25 Feb 2004 16:53:30 -0000 Received: from DH3YB711.cornell.edu (eric.phonetics.cornell.edu [128.253.71.18]) by postoffice2.mail.cornell.edu (8.9.3p2/8.9.3) with ESMTP id LAA23479; Wed, 25 Feb 2004 11:53:29 -0500 (EST) Message-Id: <5.2.1.1.2.20040225115403.00b86e98@postoffice9.mail.cornell.edu> X-Sender: eje4@postoffice9.mail.cornell.edu (Unverified) Date: Wed, 25 Feb 2004 17:59:00 -0000 To: Eljay Love-Jensen , gcc-help@gcc.gnu.org From: Eric Evans Subject: Re: gcc not recognizing C++ keywords In-Reply-To: <6.0.3.0.2.20040225102137.01de5318@iplan-mn.corp.adobe.com> References: <5.2.1.1.2.20040225110332.00b89218@postoffice9.mail.cornell.edu> <5.2.1.1.2.20040225110332.00b89218@postoffice9.mail.cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2004-02/txt/msg00298.txt.bz2 Hi, Yes, you were quite right! It is working now. Thanks so much for the tip. Eric >Is the compile doing: "g++ -o foo foo.cpp" ? > >Or is the compile doing: "gcc -o foo foo.c" ? > >Note, with GCC, C++ programs should use "g++" and have the extension .cpp >.cc .cxx .c++ .cp or .C (capital C, on case-sensitive file systems only). > >The extension can be ignored if "-x c++" is being used, since that >overrides the extension check. > >HTH, >--Eljay >