public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: "Will Bryant" <will.bryant@ecosm.com>
To: "Francisco Vinotinto" <fvinotinto@yahoo.es>
Cc: <pthreads-win32@sources.redhat.com>
Subject: Re: Borland Builder
Date: Fri, 18 Jul 2003 02:29:00 -0000	[thread overview]
Message-ID: <00c701c34cd4$9a5c3de0$1402a8c0@orca> (raw)

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/

             reply	other threads:[~2003-07-18  2:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18  2:29 Will Bryant [this message]
2003-07-18  7:22 ` Dr. Michael Heitland (caatoosee ag)
2003-07-21  5:51   ` Will Bryant
  -- strict thread matches above, loose matches on Subject: below --
2003-06-20 15:18 Francisco Vinotinto
     [not found] <B148DA6A21DBD311AEEF00104B28C229E113@w5.daf.concentric.net>
2000-07-18 14:27 ` borland builder uGAH man
2000-07-18 11:57 uGAH man

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00c701c34cd4$9a5c3de0$1402a8c0@orca' \
    --to=will.bryant@ecosm.com \
    --cc=fvinotinto@yahoo.es \
    --cc=pthreads-win32@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).