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 Date: Wed, 27 Nov 2002 10:24:13 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Why not export pthread_getsequence_np in cygwin1.dll? Message-ID: <20021127152413.GD6924@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <200211270651 DOT gAR6pinI006518 AT alumni DOT csie DOT nctu DOT edu DOT tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211270651.gAR6pinI006518@alumni.csie.nctu.edu.tw> User-Agent: Mutt/1.5.1i On Wed, Nov 27, 2002 at 02:51:44PM +0800, Vive l'amour wrote: >can any of you tell me how to call Win32 API in cygwin? I've tried to >call GetCurrentThreadId() in my program but ld failed to locate the >symbol, even though I supplied it with a correct search path for >w32api. (-lkernel32) You include the correct header (windows.h) and call the function. If GetCurrentThreadId wasn't found then you probably didn't include the correct header. cgf -- Please do not send me personal email with cygwin questions or observations. Use the resources at http://cygwin.com/ . -- 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/