Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dan Vasaru" To: "Jie Meng" , Subject: RE: multithread C lib -- LIBCMT.LIB Date: Wed, 16 Oct 2002 23:44:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <3DADBF33.FA3EC5CC@noaa.gov> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf Of Jie Meng Sent: Wednesday, October 16, 2002 9:34 PM To: cygwin AT cygwin DOT 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 AT yahoo DOT 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/