简体   繁体   English

Windows 10 SDK / Visual Studio:目标机器需要哪些依赖项?

[英]Windows 10 SDK / Visual Studio: What dependencies are required on target machines?

I've created a tiny exe file that wraps a 3rd party dll using CLion with Visual Studio 2019 toolchain:我使用 CLion 和 Visual Studio 2019 工具链创建了一个小型 exe 文件,该文件包装了第 3 方 dll:

在此处输入图像描述

It works perfectly fine on my laptop.它在我的笔记本电脑上运行良好。 However when I "install" (=copy&paste) the exe file to another machine (Server 2012 R2 and yes I know this is WIn 81. based) it results in an appcrash.但是,当我将 exe 文件“安装”(=复制和粘贴)到另一台机器(Server 2012 R2,是的,我知道这是基于 WIn 81.)时,它会导致应用程序崩溃。 On this machine I needed to install Windows 10 SDK (1.2GB) and then it worked.在这台机器上,我需要安装 Windows 10 SDK (1.2GB) 然后它就可以工作了。 However on another Win 10 machine it simply doesn't work even after installing the Win 10 SDK.然而,在另一台 Win 10 机器上,即使安装了 Win 10 SDK,它也无法正常工作。 This machine runs a never Win 10 version.这台机器运行的是从来没有 Win 10 的版本。

I'm completely lost as what the needed dependencies are on the target machines?我完全迷失了目标机器上所需的依赖关系?

EDIT: Also installed newest C++ redistributable on the machine it doesn't work but same issue remains: exit code -1073741515编辑:还在机器上安装了最新的 C++ 可再分发它不起作用但同样的问题仍然存在: exit code -1073741515

I was aware that the error indicated "STATUS_DLL_NOT_FOUND" but the only dependency (loaded at runtime, not statically linked) from 3rd party was installed on all machines.我知道错误指示“STATUS_DLL_NOT_FOUND”,但所有机器上都安装了来自第 3 方的唯一依赖项(在运行时加载,未静态链接)。 Hence the issue was quiet puzzling.因此,这个问题安静地令人费解。

But in the end it was my bad.但最后还是我的错。 I took the exe generated by a debug build.我使用了调试版本生成的 exe。 If I simply switch to release the exe is only 30 instead of 110kb and it then worked without any issue.如果我只是切换到释放 exe 只有 30 而不是 110kb,然后它就可以正常工作了。 I assume the debug build requires some specific Windows SDK / Visual studio dll to be available and hence the error.我假设调试版本需要一些特定的 Windows SDK / Visual Studio dll 可用,因此会出现错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 10 SDK无法安装到Visual Studio - Windows 10 SDK won't install to Visual Studio 我应该将Windows 8.1 SDK或Windows 10 SDK与Visual Studio 2017一起用于标准C ++吗? - Should I use Windows 8.1 SDK or Windows 10 SDK with Visual Studio 2017 for standard C++? 什么版本的Visual Studio以Windows XP为目标? - What version of Visual Studio to target windows XP builds? 以 Visual Studio 为目标的 Windows XP 的最新 C++ 标准是什么? - What is the latest C++ standard to target Windows XP with Visual Studio? 带有 Windows 10 的 Visual Studio 中的嵌入式 Web 浏览器控件会发生什么 - What Will Happen to the Embedded Web Browser Control in Visual Studio with Windows 10 Windows SDK与Visual Studio - Windows SDK vs Visual Studio Visual Studio需要Windows 10吗? - Visual Studio requires windows 10? Windows 10上的Visual Studio + localdb - Visual Studio + localdb on windows 10 Windows 10升级后,Visual Studio 2013在SQL模式比较中的SQL Select Source / Target上崩溃 - Visual Studio 2013 crashes on SQL Select Source/Target in SQL Schema Compare after Windows 10 upgrade Monogame 3.4和Windows 10 UAP项目的常量Visual Studio Update必需弹出窗口 - Constant Visual Studio Update Required popup for Monogame 3.4 and Windows 10 UAP project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM