Hi,
I am new to C++. Right now I am working on a project using VC++2008 Express. I would like to add a library file "c:\ProgramFiles\MicrosoftVisualStudio\VC98\Lib\WINMM.LIB" into my project.
But after adding the absolute path of the library file into project-->properties-->linker-->input-->Additional Dependencies, my complied project gave error: "fatal error LNK1181: cannot open input file 'c:\ProgramFiles\MicrosoftVisualStudio\VC98\Lib\WINMM.LIB'".
I have also tried to add the absolu te path as Tools-->options-->VC++ directories (library files). But still it did not work and I got the same error.
I really need to get my programming working ASAP. Can anyone help me out? Your help will be highly appreciated!! Thanks a lot in advance.
to use a library, you have to write its path in project->properties->linker->general->additional library dependencies and the write #pragma comment(lib, "mylibrarymane.lib") in your code.