I don't believe you want to compile -threads, I think you want -pthread. The following is from "man cxx": -pthread Direct the linker to use the threadsafe version of any library specified with the -l flag when linking programs. This flag also tells the linker to include the POSIX 1003.1c-conformant DECthreads interfaces in libpthread when linking the program. -threads Direct the linker to use the thread-safe version of any library specified with the -l flag when linking programs. This flag also tells the linker to include both the DEC- thread interfaces that are conformant with POSIX 1003.4a Draft 4. The flag is supported only for compatability with earlier releases of the operating system. New designs should use the -pthread flag. It is easy to reproduce what you are seeing: cxxosf.zko.dec.com> cxx -c t.cxx -threads cxx: Error: t.cxx, line 9: no suitable constructor exists to convert from "long" to "CMA_T_HANDLE" &thread_, NULL, ------------------^ cxx: Info: 1 error detected in the compilation of "t.cxx". cxxosf.zko.dec.com> cxx -c t.cxx -pthread cxxosf.zko.dec.com> cat t.cxx #include void *func(void *) { return 0; } pthread_t thread_; void main() { int status = pthread_create( &thread_, NULL, func, (void*)1 ); }