From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6467 invoked by alias); 18 Jul 2003 02:29:36 -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 6460 invoked from network); 18 Jul 2003 02:29:35 -0000 Received: from unknown (HELO smtp-1.paradise.net.nz) (202.0.32.194) by sources.redhat.com with SMTP; 18 Jul 2003 02:29:35 -0000 Received: from orca (203-79-66-6.adsl-wns.paradise.net.nz [203.79.66.6]) by smtp-1.paradise.net.nz (Postfix) with SMTP id 275298290F; Fri, 18 Jul 2003 14:29:34 +1200 (NZST) Message-ID: <00c701c34cd4$9a5c3de0$1402a8c0@orca> From: "Will Bryant" To: "Francisco Vinotinto" Cc: Subject: Re: Borland Builder Date: Fri, 18 Jul 2003 02:29:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003/txt/msg00061.txt.bz2 Hi Francisco, > Is it possible to use this library with Borland > Builder? I assume you mean C++Builder: Yes it is. As a quick and dirty solution you can use the MSVC dll, pthreadVC.dll, but you need to generate an import library for use with the Borland compiler. To do this just go into the pre-built directory and run: impdef -a pthreadBC.def pthreadBC.dll implib pthreadBC.lib pthreadBC.def You'll prolly need to move or copy the .lib somewhere else, the C++Builder 5 IDE doesn't seem to like linking libraries from directories with hyphens in them. This is enough to get you started and does seem to work ok. However, from what I understand, it's not a 'correct' solution because that DLL is linked against the MSVC C runtime library, and that's not compatible with the Borland runtime. As such IMHO it's quite surprising that it runs so well. I'm working on a proper port right now so that you can build it with C++Builder, hopefully I'll be mailing the list about that sometime in the next week - mainly it just requires a new makefile and a couple of small changes elsewhere. So if you're thinking of using pthreads-win32 with the Borland tools then use the quick solution above for now and keep an eye out for the forthcoming port work, which fingers crossed the maintainers will accept into the next release. Cheers, Will -- Will Bryant Systems Architect, eCOSM Limited Phone +64 3 365 4176 http://www.ecosm.com/