Menu

#62 compile error with SunPro 5.9

open
Core (10)
5
2009-05-06
2009-05-06
Anonymous
No

sunCC -c -errwarn -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix -DPANTHEIOS_NO_AUTO_INIT -I../../include -I"/home/matthew/3pty/stlsoft-1.9.79/include" -o core.api.mt.debug.o ../../src/core/api.cpp
"/home/matthew/3pty/stlsoft-1.9.79/include/unixstl/synch/thread_mutex.hpp", line 273: Error: Formal argument fn of type int(*)(pthread_mutexattr_t*) in call to stlsoft::scoped_handle<pthread_mutexattr_t*>::scoped_handle<int>(pthread_mutexattr_t*, int(*)(pthread_mutexattr_t*), pthread_mutexattr_t*) is being passed extern "C" int(*)(pthread_mutexattr_t*).

Discussion