无法安装MSVCP100.dll [英] Can't Install MSVCP100.dll

查看:268
本文介绍了无法安装MSVCP100.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CMake在Windows上使用Visual Studio 2010 Express构建基于Qt的我的应用程序。使用cmake进行配置时,出现以下错误:

I'm using CMake to build a Qt based application of mine on Windows with Visual Studio 2010 Express. When configuring with cmake I get the following error:

System runtime library file does not exists:
'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcp100.dll

System runtime library file does not exists:
'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

然后,当我尝试编译时,出现此错误(在Visual Studio中尝试,并使用msbuild ):

Then when I try to compile, I'm getting this error (both trying in Visual Studio, and with msbuild):

MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\Users\Kurtis\sandbox\UDJ-Desktop-Client\build\src\Release\UDJ.exe : fatal error LNK1120: 1 unresolved externals

我确定Microsoft Visual C ++ 2010 Express不附带我需要的可再分发。因此,我去了Microsoft网站下载可再发行文件(均用于 x86 x64 )。但是,安装后,我仍然遇到上述配置和编译错误。有人知道我在做什么错,或者如何解决我的问题吗?

I determined that Microsoft Visual C++ 2010 Express doesn't come with the redistributable that I need. So I went to Microsoft's website to download the redistributable (both for x86 and x64). However, after installing it, I'm still getting the above configure and compile errors. Does anyone know what I'm doing wrong, or how to fix my problem?

推荐答案

_WinMain @ 16 是Windows GUI应用程序的入口点,因此源代码中缺少它,或者您没有编写GUI应用程序,在这种情况下,链接器标志不正确。

_WinMain@16 is the entry point of a Windows GUI application, so either it's missing from your source code, or you're not writing a GUI application, in which case your linker flags are incorrect.

由于您使用的是qt,请确保已将QtMain库链接到您的项目。您可以通过如下方式将其添加到对Find_Package的调用中来完成此操作:

Since you're using qt, make sure you have the QtMain Library being linked with your project. You can do this by adding it in your call to Find_Package like so:

find_package(Qt4 4.7.0 COMPONENTS QtMain QtCore QtGui QtSQL Phonon REQUIRED)

这篇关于无法安装MSVCP100.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆