public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Erik Hensema <erik.hensema@group2000.nl>
To: 'Pthreads-win32' <pthreads-win32@sourceware.cygnus.com>
Subject: Linking pthread.dll to another dll
Date: Tue, 09 Nov 1999 07:05:00 -0000	[thread overview]
Message-ID: <A01E735D4940D311A3850090275559330BA99C@NTSRV02> (raw)

Hi,

I'm porting a shared library from Unix to NT, and I'm using pthread.dll for
the multithreaded support.
I'm having trouble using errno and the lib. Using the debugger, I can see
that errno seems to be a function (huh? why does errno = x; work???). In my
source, errno is a variable. Obiviously, errno doesn't change after a call
to a pthread function.

What can I do to make errno work? And, how is errno implemented in the
pthread dll? Is it some C++ syntax or something? My source is Ansi C.

I'm using MSVC 6.0 from the command line, and I'm using this line to link my
dll:

cl /Fehic.dll /LDd /Zi /MTd $(OBJ) \
   hic.def \
   pthread.lib \
   thread.lib \
   ws2_32.lib \
   nt-support.lib \
   mvxutil.lib \
   mon.lib

I've tried to use the way pthread.dll is linked, however, I get an
unresolved symbol "errno" when I try that. Should I include some file to
make it work?
Please note there's nothing in the online help about errno being a function
or something.

-- 
Erik Hensema
Work: erik.hensema@group2000.nl
Home: erik@hensema.xs4all.nl

             reply	other threads:[~1999-11-09  7:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-09  7:05 Erik Hensema [this message]
1999-11-09  7:40 ` Mumit Khan

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=A01E735D4940D311A3850090275559330BA99C@NTSRV02 \
    --to=erik.hensema@group2000.nl \
    --cc=pthreads-win32@sourceware.cygnus.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).