This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: multithread C lib -- LIBCMT.LIB
- From: "Dan Vasaru" <dvasaru at broadpark dot no>
- To: "Jie Meng" <jie dot meng at noaa dot gov>, <cygwin at cygwin dot com>
- Date: Wed, 16 Oct 2002 23:44:41 +0200
- Subject: RE: multithread C lib -- LIBCMT.LIB
Jie,
LIBCMT is the Microsoft implementation of the C runtime, and is compiled
using the microsoft c compiler. CYGWIN is another implementation of the a
unix-style C runtime, and the two of them don't mix.
The _beginthread and _endthread calls are Microsoft specific extensions to
the C standard; they respectively start and end a thread, performing
Microsoft C runtime initialization and cleanup. The corresponding Cygwin
primitives are called posix_create and posix_end.
You may get lucky and get your code working by just substituting
pthread_create for beginthread, and pthread_exit for endthread. Mind the
function signatures and return types though. For more about
pthread_create/exit, check the man page at:
http://unixhelp.ed.ac.uk/CGI/man-cgi?pthread_create+3
Dan
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of Jie Meng
Sent: Wednesday, October 16, 2002 9:34 PM
To: cygwin@cygwin.com
Subject: multithread C lib -- LIBCMT.LIB
Hi,
Is LIBCMT.LIB available with CYGWIN gcc? If not, what is an better
alternatives?
I have a C program for a device that calls _beginthread and _endthread
directly. I have only CYGWIN gcc on my Windows XP now. MSDN has
LIBCMT.LIB.
Any help would be greatly appreciated. Please send your reply to
jm999us@yahoo.com.
Regards,
Jie
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/