From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20522 invoked by alias); 17 Nov 2001 05:16:04 -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 20490 invoked by uid 71); 17 Nov 2001 05:16:02 -0000 Date: Tue, 06 Nov 2001 13:18:00 -0000 Message-ID: <20011117051602.20487.qmail@sourceware.cygnus.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: rodrigc@gcc.gnu.org Subject: Re: c++/4881: errno_location() not linked when creating static library Reply-To: rodrigc@gcc.gnu.org X-SW-Source: 2001-11/txt/msg00159.txt.bz2 List-Id: The following reply was made to PR c++/4881; it has been noted by GNATS. From: rodrigc@gcc.gnu.org To: craig_files@agilent.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/4881: errno_location() not linked when creating static library Date: 17 Nov 2001 05:14:03 -0000 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