visual-studio-2010dllsshcommand-promptsystem-error

DLL missing error when EXE run from command line [VS2010]


So I built an SSH-connect-test console application using libssh library, and is dependent on ssh.dll.

The application works perfectly fine when run from inside VS2010, but gives "ssh.dll missing from your computer. Reinstall the program" error when the same EXE is run from the command prompt.

Any inputs as to why am I seeing this dual behaviour of the console application from inside and outside of VS2010?

Thanks.


Solution

  • Solved.

    Had to copy the dependencies (DLL) inside the /Release or /Debug folder to run the EXE.