[问题] vc++ cannot open shared object file

楼主: yshihyu (yshihyu)   2016-02-19 23:29:54
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
我编译后执行档案出现 error while loading shared libraries: ?: cannot open shared object file: No
such file or direct
这是DEBUG mode 会出现这样 , 但是 Release mode 不会可以正常运行
这样感觉是debug mode 编译过程少编译什么dll档案吗?
因为我平常都用linux , linux 通常会显示少了什么so 档案 ,
windows 有办法知道少了哪个dll 吗? 或是有什么 tool 类似linux ldd 查询
谢谢
作者: EdisonX (卡卡兽)   2016-02-21 01:38:00
2013 年出版的产品会安装 2015 年的产品... 额 ...
作者: LPH66 (-6.2598534e+18f)   2016-02-20 18:23:00
vs2013 怎么可能会有 vs2015 的 runtime...
楼主: yshihyu (yshihyu)   2016-02-20 15:03:00
debug mode 执行后出现少了 vcrumtime140d.dll" target="_blank" rel="nofollow">
我去下载回来安装又出现另外无法找到输入点... 可是另外一台电脑可以跑那闷是什么软件把 vcruntime140d.dll 装进去?后来又安装 vs2015 才可以~感觉是少了2015 runtime lib可是我记的另台电脑我只安装 vs2013 就会有2015 runtime
作者: LiloHuang (十年一刻)   2016-02-20 00:14:00
推荐使用 Process Monitor 观察 https://goo.gl/iExiSC猜测应该是少了 debug 版的某些 runtime DLL 才会这样
楼主: yshihyu (yshihyu)   2016-02-20 00:51:00
请问一下是什么原因会造成缺少debug 需要的runtime dll因为我安装vs2013 步骤都跟另台电脑一样,另一台没问题
作者: EdisonX (卡卡兽)   2016-02-20 03:26:00
有用其他library?
楼主: yshihyu (yshihyu)   2016-02-20 03:56:00
depends22_x64 ... 我用这查看发现少了都是vc要有的dll例如 vcruntime140.dll, 那闷这dll 感觉应该安装vs2013 要有有第三方lib , 可是不是缺第三方的dll,,
作者: Killercat (杀人猫™)   2016-02-20 11:15:00
我先确认一下,你是拷贝debug .exe到其他电脑跑吗?缺的东西可以用dumpbin看 但是没办法知道在哪个档案dumpbin就是linux的ldd

Links booklink

Contact Us: admin [ a t ] ucptt.com