delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/31/17:39:09

From: anorland AT hem2 DOT passagen DOT se (Anders Norlander)
Subject: Re: posix threads (pthread32) undefined references
31 Oct 1998 17:39:09 -0800 :
Message-ID: <363AD281.BE9F1752.cygnus.gnu-win32@hem2.passagen.se>
References: <Pine DOT LNX DOT 3 DOT 95 DOT 981030144428 DOT 10889B-100000 AT moshpit DOT cygnus DOT com>
Mime-Version: 1.0
To: Ben Elliston <bje AT cygnus DOT com>
Cc: gnu-win32 AT cygnus DOT com

Ben Elliston wrote:
> 
> Hi Stipe,
> 
> > > And, I just stumbled across this alternative alternative at :
> > >    <ftp://egcs.cygnus.com/pub/pthreads-win32/>
> 
> Please use the CVS repository we have on sourceware.cygnus.com, if you
> can.  The snapshot that is there is for people who have no access to CVS,
> but it makes life harder.
> 
> > I have configure/make the libpthread32.a library using cygwin32 b19.3
> > egcs, gcc from cdk.exe). When I tried to compile the distributed test
> > programs I get the following undefined reference errors:
> 
> > % gcc create1.c -I.. -L.. -lpthread32
> > ../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference
> > to
> > `_beginthreadex'
> > ../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
> > `_endthreadex'
> > ../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
> > `TryEnterCriticalSection'
> 
> Ah yes.  Are you using Windows 95 or NT?
> 
> There has been a recent discussion about why these aren't in Cygwin's
> library stubs and I'm not sure what the outcome was.  Anyone?

Hi,
_beginthreadex and _endthreadex are part of the MS C runtime and not
the OS (I think). TryEnterCriticalSection does not even exist in
win95, so programs using the pthread32 library would not run on
that platform and that would be a bad thing.

Anders Norlander
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019