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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
-lwinmm
Kip