From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18626 invoked by alias); 17 Nov 2001 05:14:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18578 invoked by uid 61); 17 Nov 2001 05:14:03 -0000 Date: Tue, 06 Nov 2001 11:56:00 -0000 Message-ID: <20011117051403.18575.qmail@sourceware.cygnus.com> To: craig_files@agilent.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: rodrigc@gcc.gnu.org X-Mailer: gnatsweb 2.9.2 Subject: Re: c++/4881: errno_location() not linked when creating static library X-SW-Source: 2001-11/txt/msg00158.txt.bz2 List-Id: Synopsis: errno_location() not linked when creating static library State-Changed-From-To: open->closed State-Changed-By: rodrigc State-Changed-When: Fri Nov 16 21:14:02 2001 State-Changed-Why: This is not a GCC problem. errno_location is defined in the GNU C library that comes with Linux. If you want errno_location to be defined in your code, then in your source, include #include And when you link make sure to add -lpthread, since the symbol for errno_location is defined in the libpthread library on Linux. This is not a gcc problem. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4881&database=gcc