This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]