On 01/25/2017 04:57 PM, Szabolcs Nagy wrote: > it's not p=dlsym(); but p=dlsym; Yeah, right. That's what I was missing. I think the best we can do in this case is to preserve the attribute in the function pointer (if __typeof__ is used). Thanks, Florian