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: Fri, 19 Jul 2002 17:10:36 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Problem with libwinmm.a win32 library? Message-ID: <20020719211036.GA2115@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <000701c22f67$2b54cd30$0100a8c0 AT asswipe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c22f67$2b54cd30$0100a8c0@asswipe> User-Agent: Mutt/1.3.23.1i On Fri, Jul 19, 2002 at 01:59:27PM -0700, Fish wrote: >I'm trying to write a program in cygwin that uses some multimedia timer >functions and it won't link. > >gcc -lwinmm -Xlinker -Map -Xlinker fishtest.linkmap.doc -o fishtest fishtest.o >fishtest.o(.text+0x11):fishtest.c: undefined reference to `timeBeginPeriod AT 4' >fishtest.o(.text+0x18):fishtest.c: undefined reference to `timeEndPeriod AT 4' >collect2: ld returned 1 exit status >make: *** [fishtest] Error 1 The library goes last: gcc -Xlinker -Map -Xlinker fishtest.linkmap.doc -o fishtest fishtest.o -lwinmm cgf -- 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/