www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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: | <dtrout AT sprintmail DOT com> |
From: | "Fish" <fish AT infidels DOT org> |
To: | "Cygwin" <cygwin AT cygwin DOT com> |
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 |
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 <windows.h> #include <mmsystem.h> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |