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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jie Meng Sent: Wednesday, October 16, 2002 9:34 PM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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/