From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12176 invoked by alias); 6 Jun 2006 14:00:28 -0000 Received: (qmail 12155 invoked by uid 22791); 6 Jun 2006 14:00:25 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og51.obsmtp.com (HELO exprod6og51.obsmtp.com) (64.18.1.183) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 06 Jun 2006 14:00:09 +0000 Received: from source ([192.150.11.134]) by exprod6ob51.postini.com ([64.18.5.12]) with SMTP; Tue, 06 Jun 2006 07:00:07 PDT Received: from inner-relay-3.eur.adobe.com (inner-relay-3.adobe.com [192.150.20.198] (may be forged)) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k56DwhBl015047; Tue, 6 Jun 2006 06:58:44 -0700 (PDT) Received: from fe2.corp.adobe.com (fe2.corp.adobe.com [10.8.192.72]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id k56E01rs004551; Tue, 6 Jun 2006 07:00:01 -0700 (PDT) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe2.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6 Jun 2006 07:00:00 -0700 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Tue, 6 Jun 2006 14:00:00 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Tue, 06 Jun 2006 14:00:00 -0000 Subject: Re: extern question From: John Love-Jensen To: Trevis Rothwell , MSX to GCC Message-ID: In-Reply-To: <4b7c18640606060650v7944064dqf39ee460a60b33d1@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2006-06/txt/msg00046.txt.bz2 Hi Trevis, > should I even be allowed to declare "larry" in both foo.c and > bar.c ? If so, why is that not seen as a problem? You can declare larry as many times as you want. You've declared it in main.c and in bar.c. You can only define larry once. You've defined it in bar.c. If you change the declaration of larry in bar.c to a definition, then you've defined it too many times (i.e., more than once). HTH, --Eljay