From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30752 invoked by alias); 3 Oct 2002 20:07:59 -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 30743 invoked from network); 3 Oct 2002 20:07:59 -0000 Received: from unknown (HELO smtp-relay-1.adobe.com) (192.150.11.1) by sources.redhat.com with SMTP; 3 Oct 2002 20:07:59 -0000 Received: from inner-relay-2.corp.adobe.com (inner-relay-2 [153.32.1.52]) by smtp-relay-1.adobe.com (8.12.3/8.12.3) with ESMTP id g93KAUFE008487 for ; Thu, 3 Oct 2002 13:10:30 -0700 (PDT) Received: from iplan-mn.corp.adobe.com (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-2.corp.adobe.com (8.12.3/8.12.3) with ESMTP id g93K55vW026743 for ; Thu, 3 Oct 2002 13:05:05 -0700 (PDT) Received: from mn-eljaypc.adobe.com ([130.248.184.163]) by iplan-mn.corp.adobe.com (Netscape Messaging Server 4.15 mn Jul 11 2001 16:32:57) with ESMTP id H3F98P00.N3C; Thu, 3 Oct 2002 15:07:37 -0500 Message-Id: <4.3.2.7.2.20021003150258.03856590@iplan-mn.corp.adobe.com> X-Sender: eljay@iplan-mn.corp.adobe.com Date: Thu, 03 Oct 2002 13:07:00 -0000 To: "Naveen Malik" , gcc-help@gcc.gnu.org From: Eljay Love-Jensen Subject: Re: LINKING ORDER In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2002-10/txt/msg00035.txt.bz2 If A uses stuff in B, then A must appear before B. If B uses stuff in C, then B must appear before C. If D and E use stuff in A, B and C, then D and E must appear before A, B and C. If D uses stuff in E, and E uses stuff in D, then D must appear before E, and E must appear before D. (I assume you now have a confused expression.) Given all the above, g++ D.o E.o D.o A.o B.o C.o Notice that D.o appears twice, to satisfy the D-E co-dependency. Generally considered Bad Form, and a Bad Thing. Comment that co-dependency in the make file, lest the poor maintenance programmer (aka "code janitor") make a faux edit. Voila. --Eljay