Search code examples
visual-studio-2010shared-librarieslibssh2

Unusual VS2010 Link Error LNK1104: cannot open file 'libssh2d.lib'


I am trying to work with libssh2 libraries in VS2010. I am getting a weird error of LNK1104: cannot open file 'libssh2d.lib'. I have clearly included the libraries in the Project Properties->Linker->General->Additional Library Directories.

There are couple of other additional libraries with the one above, and they get included without an issue except this.

Also the Linker->Input->Additional Dependencies has that file name 'libssh2d.lib' specified in it.

Any inputs as to why am I still seeing that error? Thanks.


Solution

  • I just needed to add "libssh2d.lib": Linker->Input->Additional Dependencies. Also "Debug_lib" was added in: Linker->General->Additional Library Directories

    This resolved the issue.