How do fix a MS VS 2010 Ultimate 'hello world' error "missing MSVCP100D.DLL"

This is a discussion on How do fix a MS VS 2010 Ultimate 'hello world' error "missing MSVCP100D.DLL" within the C++ Programming forums, part of the General Programming Boards category; Hello, I am trying to run a simple 'hello world' on MS Visual 2010 Ultimate. It compiles ok, but when ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    5

    How do fix a MS VS 2010 Ultimate 'hello world' error "missing MSVCP100D.DLL"

    Hello,

    I am trying to run a simple 'hello world' on MS Visual 2010 Ultimate. It compiles ok, but when I run the exe on a windows computer that does not have MS Visual 2010 Ultimate installed, the console exe fails with an error: missing MSVCP100D.DLL

    I can compile and create a release on MS Visual 2008, and use it on a computer that does not have MS Visual installed and it works.

    What do I need to do in the 2010 Ultimate to make it work as a simple exe.

  2. #2
    msh
    msh is offline
    Novice
    Join Date
    Jul 2009
    Posts
    568
    Start here.

    Short version is that you need to provide a copy of the indicated DLL. It should be located in the same folder as the executable file that depends on it.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,428
    You need to compile in release mode, then copy over the runtime libraries for Visual Studio to the new machine.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Just my opinion: it seems kind of silly that you have to copy the runtime libraries over to the new machine when you compile in the 2010 version, but in the 2008 version it works without the extra step. I thought 2010 was suppose to be 'better'

    thanks for the replies, I was hoping it was going to be simple, but I tend to forget this is Microsoft.

    More question will come as I work through this level one class

    cheers.

  5. #5
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,428
    That is incorrect. You have to do it in 2008, as well. There is an installer which you have to run to install the required files in both versions.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Then I am really confused.

    I sent the exe of a MS VS 2008 compiled version 'hello world' to two other people (parents) who do not have visual studio. They are running xp home (mom) and pro (dad), with MS office 97 and nothing else (cause they don't do much). They could run the 2008 version exe without any issue.

    When I sent the MS VS 2010 - they had the 'missing MSVCP100D.DLL' error.

    I understand they they must have all the required runtime library's on their machine, and that is why it does not fail when they use the 2008 version, but it seem silly that it doesn't do the same thing for the 2010 version.

    again, thanks for the help.

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,428
    It simply means that some program must have installed the runtime before. It is not uncommon to see such things.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,794
    As an example of what Elysia is talking about, I frequently have seen in the past many computer games that would install the MSVC run-time libraries (a window would pop up stating this during the game's installation) - particularly the 2005 version and more recently the 2008 version. That could be a reason for your friends being able to run these programs without having actually installed the product itself.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  9. #9
    msh
    msh is offline
    Novice
    Join Date
    Jul 2009
    Posts
    568
    Like hk already pointed out, it is quite reasonable to expect that a 2005 or 2008 runtime is already installed on most modern machines; just because there is a lot of software that uses it. This is what you're seeing.

    VS 2010 is quite new, so there is less software out there that would require 2010 runtime libs. You're choices are (a) provide the necessary DLLs or (b) have your users install the runtime (this is what I've seen MS suggest in their resources). Downloads for 2010 runtimes can be found here (x86) and here (x64).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 04:39 PM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. Ping
    By ZakkWylde969 in forum Tech Board
    Replies: 5
    Last Post: 09-23-2003, 12:28 PM
  5. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21