I'm working on a set of C++ classes to encapsulate pthreads for a
system which will eventually run on MPE and Linux, and I've run into a
problem on the MPE side.  The pthread.h file defines two variables at
file scope, 'pthd_push_pop_once_flag' and '_pthd_cleanup_key'.  If
pthread.h gets #included into more than one source file (which it
inevitably does), I get a duplicate symbol error at link time (LINKERR
1015).

I've come up with a spectacularly hideous workaround for the short
term, but I would like to know if there is a way to tell the linker to
force multiple instances of the symbols to resolve to the same
locations, or if there is a patch for pthread.h that doesn't define
them at file scope.

This is with g++ 2.95.2, MPE/iX 6.5.

Thanks in advance.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *