From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14575 invoked by alias); 30 Sep 2004 19:34:17 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14566 invoked from network); 30 Sep 2004 19:34:16 -0000 Received: from unknown (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org with SMTP; 30 Sep 2004 19:34:16 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id i8UJc6lI011890 for ; Thu, 30 Sep 2004 12:38:06 -0700 (PDT) Received: from relay2.apple.com (relay2.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.14) with ESMTP id ; Thu, 30 Sep 2004 12:34:16 -0700 Received: from [17.201.24.155] (mrs.apple.com [17.201.24.155]) by relay2.apple.com (8.12.11/8.12.11) with ESMTP id i8UJXwXi013679; Thu, 30 Sep 2004 12:33:59 -0700 (PDT) In-Reply-To: <007201c4a6dc$183726a0$420216ac@deimosspace.com> References: <009f01c4a64e$1e562b00$420216ac@deimosspace.com> <3DAC1DD3-124D-11D9-9765-000393941EE6@apple.com> <007201c4a6dc$183726a0$420216ac@deimosspace.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable Cc: gcc@gcc.gnu.org From: Mike Stump Subject: Re: problem creating a static library Date: Thu, 30 Sep 2004 20:40:00 -0000 To: =?ISO-8859-1?Q?Danilo_Jos=E9?= X-SW-Source: 2004-09/txt/msg01678.txt.bz2 On Sep 30, 2004, at 3:56 AM, Danilo Jos=E9 wrote: > It is happening something really strange. Ah, I don't know why you didn't include that information in the first=20 place, I could have told you exactly what happened and why. In the .s file for the file contains the definition ('S'), you will=20 find the word notoc, or no_toc, this is a bug. If that is removed,=20 this will work as expected. The work around, is to not use a .a file,=20 or to put a symbol in that file that is referenced by something that is=20 in the program.[1] 1 - This depends upon the symbol names being the same between the=20 undefined and the defined, after you remove c++filt. It has been known=20 to happen that two differrent spellings are mapped to the same=20 demangled name, thus leading to confusion. I doubt this would be the=20 case in this instance.