From: cgallery AT earth DOT execpc DOT com (Computer Gallery) Newsgroups: comp.os.msdos.djgpp Subject: Re: RSXNTDJ problem w/ PlaySound() Date: 26 Jul 2000 18:51:51 -0500 Organization: Exec-PC Internet References: <397ef3e6$0$60931$392904a7 AT news DOT execpc DOT com> <8ln0m8$pjk$1 AT slb6 DOT atl DOT mindspring DOT net> X-Newsreader: TIN [version 1.2 PL2] Lines: 28 Message-ID: <397f7997$0$72403$726baab@news.execpc.com> NNTP-Posting-Host: cb1de244.news.execpc.com X-Trace: DXC=MSQR``K6WNdh_P==R2PeVj`OiBnbCigiU>8_hh4`>8YbCYbkm>Wn^DOkVYNo4aRGkI]9c0oI5I6L[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 Thanks for the help. I have the winmm.dll in my c:\windows\system directory. But don't I need some corresponding library file RSXNTDJ can use? The "Programming Windows" book by Charles Petzold indicated that winmm.lib needs to be linked to code calling PlaySound() (this for Microsoft compilers). I didn't get a winmm.lib w/ RSXNTDJ, and assumed it may be a diffferent file. But I've tried the obvious ones and can't determine which it may be in. Any further help would be great. Marp (marp AT 0 DOT 0 DOT 0 DOT 0) wrote: : "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