From: cgallery AT earth DOT execpc DOT com (Computer Gallery) Newsgroups: comp.os.msdos.djgpp Subject: RSXNTDJ problem w/ PlaySound() Date: 26 Jul 2000 09:21:25 -0500 Organization: Exec-PC Internet X-Newsreader: TIN [version 1.2 PL2] Lines: 23 Message-ID: <397ef3e6$0$60931$392904a7@news.execpc.com> NNTP-Posting-Host: 5646ea07.news.execpc.com X-Trace: DXC=5Fa65Q24L\kiAcBM^EMG8_hh4`>8YbCYbkmE:b70Y1U AT hb^QY AT ef2i7jnI5I6L[ITgI`=RQSiT>;`do X-Complaints-To: abuse AT execpc DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie 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' I have made sure I'm including the "mmsystem.h" header file. Without that header, I get about four lines of output w/ some undeclared constants which are being used by "hellowin.c" If I comment-out the PlaySound() call in "hellowin.c" it all works fine, but no sound. Is there a library I have to specifically link-in? How do I do this? BTW, I'm using RSXNTDJ 1.51 and DJGPP 2.03. Thanks! Phil