I investigated the problem.
On my machine (Scientific Linux 4.2, gcc3.3.2, glibc2.3.2, ROOT5.08.00), following simple program reproduced the problem.
There was no probelm with ROOT version4.
Is it bug of ROOT ?
When I put -lpthread at the last. This problem stopped.
Actually without this option, my analyzer workes.
I guess -lpthread is not necessary.
I will check more and if not necessary, I will remove -lpthread.
--- Makefile ---
rootlibs := $(shell $(ROOTSYS)/bin/root-config --libs)
rootcflags := $(shell $(ROOTSYS)/bin/root-config --cflags)
test: main.cpp
g++ $(rootcflags) -o $@ $< -lpthread $(rootlibs) -lThread
------
--- main.cpp ---
#include <Riostream.h>
#include <TThread.h>
void* TestLoop(void *arg)
{
return NULL;
}
int main(int argc, char *argv[])
{
TThread *thread = new TThread("TestLoop", TestLoop);
cout<<"OK"<<endl;
return 0;
}
------ |