Menu

WinMM.lib library

2004-01-30
2012-09-26
  • Nobody/Anonymous

    Hello, I am beginner. Dev do not contain winmm.lib. I tried first to add it in linker by add library (I put whole path to library from SDK), then I also copyed winMM to Dec-cpp/lib/, but it did not work:
    gcc.exe d.o  -o "P2.exe" -L"C:/Program Files/Dev-Cpp/lib" -mwindows "WinMM.lib"
    gcc.exe: WinMM.lib: No such file or directory
    Can anybody help me please? Thanks!

    Martin

     
    • Anonymous

      Anonymous - 2004-01-30

      This compiler doesn't use the naming conventions you're expecting.  Instead of WinMM.lib, you want libwinmm.a; all the libraries have that naming convention for this compiler: lib<library name>.a.  Instead of specifying the name of the file, you really should just add the linker command -lwinmm and it will grab the library you're wanting (this holds true for other things e.g., -lgdi32 instead of libgdi32.a, etc.).

      HTH.

      Watson (the pencil neck) Davis

       
    • Nobody/Anonymous

      -lwinmm

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.