78459

Can't Install MSVCP100.dll

Question:

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

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

I determined that Microsoft Visual C++ 2010 Express doesn't come with the <a href="http://www.cmake.org/pipermail/cmake/2011-May/044166.html" rel="nofollow">redistributable that I need</a>. So I went to Microsoft's website to download the redistributable (both for <a href="http://www.microsoft.com/en-us/download/details.aspx?id=5555" rel="nofollow">x86</a> and <a href="http://www.microsoft.com/en-us/download/details.aspx?id=14632" rel="nofollow">x64</a>). 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?

Answer1:

_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.

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)

Recommend

  • Read eax register
  • Use C Library in .NET
  • error LNK2019 unresolved external symbol dbbind referenced in function
  • Gtkmm program compiles fine but crashes - windows XP
  • Error with vtkRenderer
  • how to build .exe for python 3.5+, 3.6 if possible?
  • LNK 2019 - Unresolved External Symbol
  • Segmentation fault with array of strings C
  • Build a string in MSBuild as a concatenation of a base string n-times
  • MSBuild: OutputPath directory is empty
  • Skip a project while building a solution using msbuild 3.5
  • Linking To V8 Snapshot
  • How to convert NAnt function “path::combine(path1, path2)” to MSBuild?
  • Python: “Print” and “Input” in one line [duplicate]
  • How do I compile a C/C++ program through windows command prompt?
  • Adding a new element into the DOM with angularjs does not initiate it
  • integrate POCO library in android ndk
  • Quick Question About Get and Set
  • Deduce parent class of inherited method in C++
  • (Play 2.5) How do you define json format for type alias of an Option?
  • @tailrec why does this method not compile with 'contains a recursive call not in tail position&
  • Mercurial hook to set policy on tag names
  • Building jamvm 1.5.4 on OS X Lion
  • How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15
  • C++ friend class std::vector
  • How to load gif image while ajax content is loading and javascript [duplicate]
  • Using $compile in a directive triggers AngularJS infinite digest error
  • Struts 2 TextField Tag with an attribute and no value
  • How to get latest version of a artifact on Bintray using JSONP
  • NUnit 3.0 TestCase const custom object arguments
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • Using a canvas object in a thread to do simple animations - Java
  • error importing numpy
  • MonoTouch: How to download pdf incrementally as indicated in the Apple slides “Building Newsstand Ap
  • Groovy: Unexpected token “:”
  • Very simple C++ DLL that can be called from .net
  • Read text file and split every line in MSBuild
  • Qt: Run a script BEFORE make
  • Binding checkboxes to object values in AngularJs