PlaySound and OpenWatcom

This is a discussion on PlaySound and OpenWatcom within the Windows Programming forums, part of the Platform Specific Boards category; Any of you compile for Win32 using Open Watcom 1.3? I just upgraded from Watcom 11.0 and now I find ...

  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,255
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21