| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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" <dvasaru AT broadpark DOT no> |
| To: | "Jie Meng" <jie DOT meng AT noaa DOT gov>, <cygwin AT cygwin DOT com> |
| Subject: | RE: multithread C lib -- LIBCMT.LIB |
| Date: | Wed, 16 Oct 2002 23:44:41 +0200 |
| Message-ID: | <CHEDKHJJDLOCCOFLMGEAIENKCNAA.dvasaru@broadpark.no> |
| MIME-Version: | 1.0 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |