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 Reply-To: From: "Fish" To: "Cygwin" Subject: Problem with libwinmm.a win32 library? Date: Fri, 19 Jul 2002 13:59:27 -0700 Message-ID: <000701c22f67$2b54cd30$0100a8c0@asswipe> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal I'm trying to write a program in cygwin that uses some multimedia timer functions and it won't link. Keeps saying it can't find the APIs even though they're there (or *appear* to be anyway): ============================= #include #include int main (int argc, char* argv[]) { timeBeginPeriod(1); timeEndPeriod(1); return 0; } ---------------------------- gcc -DWIN32 -D_WIN32 -Wall -malign-double -O3 -o fishtest.o -c fishtest.c -Wa,-adhln=fishtest.c.listing.doc 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 ---------------------------- Administrator AT CENSORED /lib/w32api $ nm libwinmm.a | grep timeBeginPeriod 00000000 I __imp__timeBeginPeriod AT 4 00000000 T _timeBeginPeriod AT 4 ============================= Does anyone have any idea what's going on? Thanks. -- "Fish" (David B. Trout) fish AT infidels DOT org -- 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/