c++/4881: errno_location() not linked when creating static library
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Mon Nov 5 10:24:00 GMT 2001
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
More information about the Gcc-bugs
mailing list