Thread: PlaySound and OpenWatcom

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    51

    PlaySound and OpenWatcom

    Any of you compile for Win32 using Open Watcom 1.3? I just upgraded from Watcom 11.0 and now I find there is a problem with the PlaySound() function. I get an error message something like "Undfined reference _PlaySoundA@12." I don't have the exact message handy, but it's something like that.

    Anybody else run into this? Is it just a linker switch?

    Thanks in advance!

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    You need to tell your linker to link to winmm.lib. Watcom's a bit obscure these days, so dunno if anyone can help you specifically with it.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    51
    Well, by chance if there is anyone out there who can tell me how to do it from with in the IDE (I'm a lazy weekend coder), I'd appreciate it.

    Thanks!

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    51
    Thanks for the tip.

    I got it to work. Linking to the lib was the key!


    Thank you

Popular pages Recent additions subscribe to a feed