This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with libwinmm.a win32 library?


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@4'
>fishtest.o(.text+0x18):fishtest.c: undefined reference to `timeEndPeriod@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]