From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14926 invoked by alias); 5 Sep 2002 00:27:52 -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 14915 invoked from network); 5 Sep 2002 00:27:51 -0000 Received: from unknown (HELO anora.org) (12.227.4.60) by sources.redhat.com with SMTP; 5 Sep 2002 00:27:51 -0000 Received: (qmail 11381 invoked from network); 5 Sep 2002 00:27:35 -0000 Received: from unknown (HELO vaghn.anora.org) (root@192.168.1.177) by 12-227-4-60.client.attbi.com with SMTP; 5 Sep 2002 00:27:35 -0000 Date: Wed, 04 Sep 2002 17:27:00 -0000 From: GRE Spam Mail To: Rupert Wood Cc: bley@cs.uni-magdeburg.de, bjensen@fastmail.fm, gcc-help@gcc.gnu.org Subject: Re: undefined reference to `__errno_location(void)' Message-Id: <20020904202807.65cbd697.gre_spam@anora.org> In-Reply-To: References: <15734.11629.151771.241596@wh2-19.st.uni-magdeburg.de> Organization: Anora Computer Services Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00045.txt.bz2 On Wed, 4 Sep 2002 12:20:11 -0400 (EDT) Rupert Wood wrote: > Claudio Bley wrote: > > > GRE> extern int errno; > > ^^^^^^^^^^^^^^^^^ > > > > Remove this line from your source. You get the error because errno is > > defined as a macro and the line is expanded to > > > > extern int (*__errno_location ()); > > Which, in that scope, is defined as a C++ symbol. Which is why it > didn't match the C __errno_location in libpthread. > > The "d'oh" here is that the clue was in the title: it wouldn't have said > "(void)" if it was trying to match a C symbol because it wouldn't have > that information. > > Oh well, we learn. (And good spot, Claudio!) > > Rup. > > I just wanted to thank you all for your help. The problem seems resolved. I also want to thank the others that helped me that I didn't reply to in this message, Such as Der Herr Hofrat. Sincerely, Gordon R. Ellsworth, Jr. P.S. Now I feel stupid. "d'oh!"