From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: RSXNTDJ problem w/ PlaySound() Date: Wed, 26 Jul 2000 11:39:08 -0400 Organization: MindSpring Enterprises Lines: 18 Message-ID: <8ln0m8$pjk$1@slb6.atl.mindspring.net> References: <397ef3e6$0$60931$392904a7 AT news DOT execpc DOT com> NNTP-Posting-Host: 04.30.99.83 X-Server-Date: 26 Jul 2000 15:38:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Computer Gallery" wrote in message news:397ef3e6$0$60931$392904a7 AT news DOT execpc DOT com... > I'm trying to compile Charles Petzold's "hellowin.c" w/ gccw32: > > gccw32 hellowin.c -o hellowin.exe > > I get the following output: > > c:/djgpp/tmp\ccUUSZqI.o(.text+0x280):hellowin.c: undefined > reference to `PlaySoundA' This function is in winmm.dll. The import lib for this is usually not linked in by default so you must specify it when linking. I think you use -lwinmm to kink it in but I'm not totally sure for rsxntdj. Hope this helps. Marp