I've successfully generated a 64-bit library called "myLibrary.lib" in project A using Visual Studio 2010.
Now I've another project B that uses "myLibrary.lib". I include the header files required to use "myLibrary.lib" in project B. Added the .lib into my project and added an entry for it in Linker>Input>Additional Dependencies.
When I try to build, I get an error "LINK : fatal error LNK1181: cannot open input file myLibrary.lib".
Things I've tried:
- Tried to the path of my .lib file in Linker>General>Additional
Library Directories
If I do this, then I get unreferenced function errors for the ones I'm using from .lib - Tried giving my .lib name in quotes along with full path in
Linker>Input>Additional Dependencies
If I do this, then I get unreferenced function errors for the ones I'm using from .lib - Made sure there are no spaces in my lib name
- Checked file permissions
- Tried building on Visual Studio 2017 and still get same error
Is there anything else that I can try to workaround this error?