[AGENT++] make: static_cast from 'pthread_t' (aka '_opaque_pthread_t *') to 'long' is not allowed
Jochen Katz
katz at agentpp.com
Mon Aug 1 22:35:46 CEST 2016
Hello,
I think it is the following line from log.cpp:
if (sizeof(pthread_t) == sizeof(long))
{
add_integer(static_cast<long>(pid));
}
As a temporary workaround, you can remove the complete "if" and just
keep the code from the "else".
Regards,
Jochen
Am 01.08.2016 um 19:15 schrieb Frank Fock:
> Hi,
> Could you please send the original error message of the compiler including the source code location of the error?
> Thank you,
> Frank
>
>> Am 01.08.2016 um 06:08 schrieb m.gens <Michael.Gens at TU-Berlin.DE>:
>>
>> Hello,
>>
>> following error message was thrown
>>
>> static_cast from ‘pthread_t' (aka '_opaque_pthread_t *') to 'long' is not allowed
>>
>>
>> while running the make command.
>>
>> What can I do to avoid this message?
>>
>>
>> Thank you very much in advance for any help.
>>
>> Best Rgds.
>>
>>
>> Michael
>>
>>
>> OS:
>> OS X 10.11.6
More information about the AGENTPP
mailing list