Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6890521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:17:32+00:00 2026-05-27T06:17:32+00:00

I am trying to compile an application in C++ that works without the .net

  • 0

I am trying to compile an application in C++ that works without the .net framework or visual studio run times having to be installed. I have done some research and found this article from MSDN showing how to compile native C++ code. However when I followed this example, after running the generated executable on a computer without the visual studio run times, I get an error MSVCP100D.dll is missing from your computer. I know that it is possible to fix a similar error with GCC by typing -static-libgcc -static-libstdc++ to generate a static binary. Is it possible to do this using Visual Studio 2010? The reason I wish to do this is that I enjoy working with Visual Studio IDE, but I would like my code to be portable to other OS’s like UNIX. Thank you!

Note: I thought it might be helpful to post the code I am compiling for testing purposes.

#include <iostream>
int main()
{
std::cout << "Hello world";
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:17:33+00:00Added an answer on May 27, 2026 at 6:17 am

    MSVCP100D.dll is the debug version of MSVCP100.dll. They are the dynamic link libraries that implements the C run-time libraries. This is needed to implement the C++ standard libraries in Visual C++ 2010.

    The compiler links against MSVCP100D.dll in debug mode. There should be a MSVCP100D.dll on your development machine when you installed the compilers that came with Visual Studio 2010. If this isn’t so then something went wrong with the installation.

    The compiler links against MSVCP100.dll in release mode. If you plan to deploy your application, you need to compile in release mode and distribute the release versions of the binary. Do not distribute the debug versions of the binary.

    If even after doing that you still get errors, you may need to install the Visual C++ 2010 runtimes.

    The installers are available to download:

    • Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
    • Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)

    If you rather not link against the dynamic library, you can statically link the C run-time libraries into your application by specifying the /MT compiler switch as described here.

    Note that static linking will increase the size of the application binary, and if the C run-time libraries are updated (e.g. security/performance improvements) the application will not use them unless you recompile the application.

    I highly recommend that you install the redistributable package anyway since lots of other applications you may use might need the libraries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a small application and have come across a compile time
I'm trying to compile a Flex application in Ant (no problems here, I can
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
I am trying to install an application onto my device..I have compiled the application
I'm trying to load a mixed managed application compiled and targeted for Framework 3.5
When trying to compile the following code, I am getting a warning that line
While trying to compile my project, that uses some third party headers, with mingw
In our application, we have a number of Windows Services (more than 30) that
I am trying to compile an 32 bit application. I am aware of problems
I have been trying to set up a program that sends a push notification

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.