This is the mail archive of the
pthreads-win32@sourceware.cygnus.com
mailing list for the pthreas-win32 project.
Solved: errno problems
- To: 'Pthreads-win32' <pthreads-win32 at sourceware dot cygnus dot com>
- Subject: Solved: errno problems
- From: Erik Hensema <erik dot hensema at group2000 dot nl>
- Date: Wed, 10 Nov 1999 11:20:32 +0100
Hi,
I wrote to this list about errno being different inside and outside
pthread.dll. I've solved the problems. This is how & why:
Linking to different C-libraries results in different versions of errno,
printf, etc. This could result in access violations, or in more obscure
problems, like my problems with errno.
I have recompiled all my source code with /MDd (link with MSVCRTD.LIB debug
lib), including the pthread.dll, and now everything works as expected.
Note that by default, the msdev environnement links with /ML, this should
also be changed to /MD or /MDd.
This is a know problem described in the MS knowledge base, I can supply a KB
number, if someone likes to read the article.
--
Erik Hensema
Work: erik.hensema@group2000.nl
Home: erik@hensema.xs4all.nl