This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4881: errno_location() not linked when creating static library
- From: rodrigc at gcc dot gnu dot org
- To: craig_files at agilent dot com, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 17 Nov 2001 05:14:03 -0000
- Subject: Re: c++/4881: errno_location() not linked when creating static library
[Get raw message]
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 <errno.h>
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