>
"Ian Collins" <ia******@hotmail.comwrote in message
news:6m*************@mid.individual.net...>alexroat wrote:
Why bother with all that nonsense when there is a standard solution?>>private:
static void * gate(void *);//access point for pthread_create
This should be an extern "C" linkage function, not a static member.
[...]
Yes. Humm... Well, FWIW, I guess one can take advantage of compiler
specific extensions here. It's a dirty thing, but I think it would work.
Something like:
#if defined(_MSC_VER)
# define DECLSPEC_CDECL __cdecl
#elif defined(__GNUC__)
# define DECLSPEC_CDECL __attribute__((cdecl))
#else
# error MSVC or GCC REQUIRED!!!!! ;^(...
#endif
--
Ian Collins