From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8955 invoked by alias); 15 Sep 2003 21:15:42 -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 8935 invoked from network); 15 Sep 2003 21:15:42 -0000 Received: from unknown (HELO mail-srv2.micron.com) (137.201.242.130) by sources.redhat.com with SMTP; 15 Sep 2003 21:15:42 -0000 Received: from mail-srv2.micron.com (localhost [127.0.0.1]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id h8FLFg6d010400 for ; Mon, 15 Sep 2003 15:15:43 -0600 (MDT) Received: from ntxboimbx07.micron.com (ntxboimbx07.micron.com [137.201.80.94]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id h8FLFecW010353; Mon, 15 Sep 2003 15:15:40 -0600 (MDT) From: lrtaylor@micron.com X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: multiple inclusion of header files accross Date: Mon, 15 Sep 2003 21:15:00 -0000 Message-ID: <363801FFD7B74240A329CEC3F7FE4CC4A275CF@ntxboimbx07.micron.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: To: , X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-SW-Source: 2003-09/txt/msg00187.txt.bz2 Aaron, Are you experiencing problems that you believe is due to these multiple inc= lusions, or what is your main goal here that is driving you to get the numb= er of inclusions down? Thanks, Lyle Taylor IS Applications -----Original Message----- From: Aaron Case [mailto:aaron.case@dynazign.com] Sent: Monday, September 15, 2003 1:12 PM To: gcc-help@gcc.gnu.org Subject: multiple inclusion of header files accross=20 Hello, Is there a ld switch to address the problem of multiple inclusion of header files accross object files. I have used #ifndef and #define to prevent multiple inclusion within an object file successfully. Or should this be address in the makefile? The current structure of the makefile compiles several objects and then links the objects together but, but some header files are included in almost all the source files used to make each object. Or should this be addressed by reorganizing my header files and throwing in a few extern keywords? Thanks in advance? Aaron Case