From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15095 invoked by alias); 3 Aug 2004 10:04:48 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 15088 invoked from network); 3 Aug 2004 10:04:47 -0000 Received: from unknown (HELO www2.pochta.ru) (81.211.64.22) by sourceware.org with SMTP; 3 Aug 2004 10:04:47 -0000 Received: by HotBOX.Ru WebMail v2.1 id i73A4qlB013157; Tue, 3 Aug 2004 14:04:52 +0400 (MSD) Date: Tue, 03 Aug 2004 10:04:00 -0000 Message-Id: <200408031004.i73A4qlB013157@www2.pochta.ru> From: Gianluca To: pthreads-win32@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Originating-IP: [213.203.163.178] Subject: Borland C++Builder support X-SW-Source: 2004/txt/msg00094.txt.bz2 I have built the library with the Will Bryant's bmakefile. I've received a bunch of warnings but it was OK. I put the PthreadBC.dll on Windows directory, I included PthreadBC.lib in my .bpr project, I compiled and linked the program below. #include #include #include void* function( void* arg ) { printf( "This is thread %d\n", pthread_self() ); return( 0 ); } int main( void ) { pthread_attr_t attr; pthread_attr_init( &attr ); pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED ); pthread_create( NULL, &attr, &function, NULL ); /* Allow threads to run for 10 seconds. */ sleep(10); return EXIT_SUCCESS; } On debugging the thread writes out "This is thread 19922" and does not return. If I run the executable just created Win XP gives me error. Could someone help me? Thanks in advance, Gianluca