Bug in egcs-1.1.2 on HP-UX 10.20

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Mar 27 05:11:00 GMT 1999


> What are weak symbols ?

You don't need to worry about them; AFAIK, HPUX doesn't support them.
(In case you do worry: this is a linker technique which allows proceed
linking even if functions are missing, and then detect that at
run-time)

> What are these "pthreads"

pthreads is a library for multithreading (i.e. executing more than one
function at the same time). This library supposedly solves a number of
common problems, but it also introduces new ones.

While I'm not an expert for HPUX, I recommend to try a number of
things:

- invoke g++ with '-threads', e.g. gcc -o hello hello.cc -threads, or
- when linking, explicitly pass -lc_r (if there is a library called
  lib*thread* in /usr/lib, you could try this as well)

I got this from the pa-hpux10 specs; it might be totally wrong and
off-track.

Hope it helps, anyway,

Martin


More information about the Gcc-bugs mailing list