This problem was fixed in some of the pthreads patches done last year. I pulled these patch ID's from a RC call; no doubt they've been superseded by now but this should get you started in the right direction: Draft 4 threads patch: MPEKXY4 Draft 10 threads patch: MPEKXY3 Mike John Bode ([log in to unmask]) wrote: : 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. -- ----------------------------------------------------------------- Mike Yawn Hewlett-Packard email [log in to unmask] Commercial Systems Division Phone (916) 748-3865 8000 Foothills Blvd MS 5219 Roseville, CA 95747 ----------------------------------------------------------------- * To join/leave the list, search archives, change list settings, * * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *