[Mono-dev] Build error with clang++ 4.1

Stack Pointer stackpointer at me.com
Tue Oct 9 23:46:55 UTC 2012

I'm seeing the following build error from clang++:

../../mono/utils/mono-tls.h: In function 'int mono_native_tls_alloc(pthread_key_t*, void*)':
../../mono/utils/mono-tls.h:35: error: invalid conversion from 'void*' to 'void (*)(void*)'
../../mono/utils/mono-tls.h:35: error:   initializing argument 2 of 'int pthread_key_create(pthread_key_t*, void (*)(void*))'

I say clang++ because I've added a .cpp file which indirectly includes this file. I guess clang in itself is happy, but clang++ is stricter.

Any thoughts?

More information about the Mono-devel-list mailing list