Thread: Which library for PlaySound()

  1. #1
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408

    Which library for PlaySound()

    My playsound code:



    code:--------------------------------------------------------------------------------
    PlaySound("meetns.wav", NULL , SND_FILENAME | SND_ASYNC);
    --------------------------------------------------------------------------------


    is giving me this error:


    C:\WINDOWS\TEMP\ccJikjgb.o(.text$manage__6CASTLE+0 x335):fightg~2.cpp: undefined reference to `PlaySoundA@12'

    Now Frenchfry said that it was a linker error and that it probably was a missing library.
    So which library do i need?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Header file mmsystem.h library winmm.lib.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Big thanks Adrian!!!!!!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 04:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM