Hi Kerry, To use the Thread class, you should not link with /usr/lib/libpthread.so. Simply, do gSystem->Load("libThread"); as shown in the tutorial $ROOTSYS/threads.C You should specify an alternative thread library only if you have given this library when configuring the ROOT system with ./configure linux --with-thread=/usr/lib/libpthread.so Rene Brun On Fri, 19 Dec 2003, LEE, KERRY T. (JSC-SR) (UHCL) wrote: > Hi, > > I am using ROOT 3.10.02 on Red Hat 9 gcc 3.2.2. > > I have compiled ROOT using threads by doing > > ./configure linux --enable-thread > > The libThread.so library was created in the $ROOTSYS/lib directory, but when > I follow the instructions from > http://www-linux.gsi.de/~go4/HOWTOthreads/howtoframe.html, to use threads in > CINT, I get the following error > > > > ******************************************* > * * > * W E L C O M E to R O O T * > * * > * Version 3.10/02 19 December 2003 * > * * > * You are welcome to visit our Web site * > * http://root.cern.ch * > * * > ******************************************* > > FreeType Engine v2.1.3 used to render TrueType fonts. > Compiled for linux with thread support. > > CINT/ROOT C/C++ Interpreter version 5.15.115, Dec 9 2003 > Type ? for help. Commands must be C++ statements. > Enclose multiple statements between { }. > root [0] gSystem->Load("/usr/lib/libpthread.so"); > dlopen error: /usr/lib/libpthread.so: invalid ELF header > Load Error: Failed to load Dynamic link library /usr/lib/libpthread.so > *** Interpreter error recovered *** > > > Does anyone know what the problem is? > > Thanks > Kerry >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET