This is the mail archive of the gcc-help@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: Problem with gcc v3.4.3?


Answered my own question.
I needed to link to pthread in these applications.
The link error confused me in that I thought pthread was being linked to and was the component making the undefined reference.
Guess not....


Jeffrey Holle wrote:
I'm running Mandrake linux v10.0 offical release.

I've developed a problem recently in linking cpp applications that use shared libraries.

This may have been caused by:
  a.  upgrading to gcc v3.4.3 from v3.4.2, or
  b.  rebuilding my linux system.

In multiple applications, I get:
/lib/tls/libpthread.so.0: undefined reference to `errno@GLIBC_PRIVATE'
/lib/tls/libpthread.so.0: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE'


In the past, I didn't need to explicitly link to libc.so, I assume that it auto-linked as needed. Now it doesn't matter if I link to it or not.

Can someone point of the cause of this error?




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