问题描述
因此,我使用libssh库构建了一个SSH连接测试控制台应用程序,并且依赖于ssh.dll.
So I built an SSH-connect-test console application using libssh library, and is dependent on ssh.dll.
从VS2010内部运行时,该应用程序运行正常,但在命令提示符下运行同一EXE时,出现"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.
关于为什么我会从VS2010内部和外部看到控制台应用程序的这种双重行为的任何输入?
Any inputs as to why am I seeing this dual behaviour of the console application from inside and outside of VS2010?
谢谢.
推荐答案
已解决.
必须在/Release或/Debug文件夹中复制依赖项(DLL)以运行EXE.
Had to copy the dependencies (DLL) inside the /Release or /Debug folder to run the EXE.
这篇关于从命令行运行EXE时,DLL丢失错误[VS2010]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!