This is the mail archive of the
mailing list for the pthreas-win32 project.
Linking pthread.dll to another dll
- To: 'Pthreads-win32' <pthreads-win32 at sourceware dot cygnus dot com>
- Subject: Linking pthread.dll to another dll
- From: Erik Hensema <erik dot hensema at group2000 dot nl>
- Date: Tue, 9 Nov 1999 14:17:15 +0100
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
cl /Fehic.dll /LDd /Zi /MTd $(OBJ) \
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