From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,86d1ed9866e618e9,start X-Google-Attributes: gid1164f8,public From: "Didier Donner" Subject: POSIX Threads and C++ with Tru64 CXX Date: 1999/07/28 Message-ID: <7nn8d7$58p$1@arcturus.ciril.fr>#1/1 X-Deja-AN: 506221174 Content-Transfer-Encoding: 8bit Organization: CIRIL, Nancy, France X-MSMail-Priority: Normal X-Priority: 3 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 Newsgroups: comp.sys.dec Hello, I am trying to compile C++ code with the POSIX 1003.1c threads library. The C++ compiler is CXX 6.1-029 on a 4.0e Alpha. The code is basically a set of C++ class which hides the variation in implementation on variuous Unixes. When I tried to compile this code int status = pthread_create( &thread_, NULL, &OSThreadImpl::thread_execute, (void*)this ); I get the following error cxx: Error: threads.cc, line 679: no suitable constructor exists to convert from "long" to "CMA_T_HANDLE" &thread_, NULL, ------------------^ When I read the documentation for pthread_create, I got this int pthread_create( pthread_t *thread, const pthread_attr_t *attr, void * (*start_routine)(void *), void *arg); According to the man pages, the attr parameter can be NULL. Here are the compilations options. cxx -c -o ../../../decunix4.0-cxx.shared.debug/threads.o -ptr ../../../lib/decunix4.0-cxx.shared.debug/cxx_repository.utils -threads -g -Ddec_unix -D__ANSI_CPP__ -DUSE_PTHREAD -I/usr/include/cx x -I../../../include threads.cc Any help would be appreciated. Thank you in advance, Didier Donner