Hi Georg,
Humm ... indeed there was some magic in the Makefile to hide TAtomicCountPthread.h from rootcint (the path I assumed) and the '!defined(__CINT__)' is hiding it when passing it to rootcint indirectly.
In short, to update your header so that it can be properly parsed by rootcint use the pattern
#if !defined(__CINT__) #include <pthread.h> #endif
Cheers,
Philippe.
On 10/13/11 10:27 AM, Georg Troska wrote:
> Hi Philippe,
>
> I found these lines in TAtomicCount.h
>
> #elif defined(R__HAS_PTHREAD)&& !defined(__CINT__)
> #include "TAtomicCountPthread.h"
>
> might it be that R__HAS_PTHREAD is not defined? Do I have to enable it somehow during configure?
>
> Georg
>
>
> Am 13.10.2011 um 00:30 schrieb Philippe Canal:
>
>> Hi Georg,
>>
>> Which version of ROOT are you using? What do you mean by not finding the symbols?
>> In the trunk we have at least one example (TAtomicCountPthread.h) that includes pthreads.h
>> and is passed through rootcint successfully.
>>
>> Cheers,
>> Philippe.
>>
>> On 10/12/11 6:12 AM, Georg Troska wrote:
>>> Hi,
>>>
>>> im trying to use pthreads (not TThread) in root. Comiling seems to work, but rootcint does not run through. He doesn't find the symbols
>>>
>>> Do I have to set some special pragmas or something?
>>>
>>> Georg
Received on Thu Oct 13 2011 - 18:05:13 CEST
This archive was generated by hypermail 2.2.0 : Fri Oct 14 2011 - 17:50:01 CEST