Thread: winmm.lib

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    127

    winmm.lib

    how do i enable it in visual c++ 2008? do you have to buy the std or pro???

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    932
    I think its
    Project--> Open project properties --> Configuration Properties --> Linker --> General -->
    Additional Libraries Properties and there you put the path there.

    But it didnt work for me so i just used
    #pragma comment (lib, "winmm.lib") in my .cpp file and it worked.
    Using Windows 10 with Code Blocks and MingW.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Project--> Open project properties --> Configuration Properties --> Linker --> Input
    Make sure to add it for both Debug and Release.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. winmm.lib
    By jaquenta in forum C Programming
    Replies: 10
    Last Post: 12-12-2008, 03:15 PM
  2. Eject a cd with C++ code
    By Yuri in forum C++ Programming
    Replies: 8
    Last Post: 08-24-2005, 01:09 AM
  3. lcc win32 and winmm.lib
    By underthesun in forum Windows Programming
    Replies: 1
    Last Post: 07-01-2005, 05:36 AM
  4. explicit library file
    By subdene in forum C++ Programming
    Replies: 5
    Last Post: 06-21-2004, 10:25 AM