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 9050995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:47:39+00:00 2026-06-16T12:47:39+00:00

I have read these two SO questions: Which runtime libraries to ship? and License

  • 0

I have read these two SO questions: Which runtime libraries to ship? and License of runtime libraries included in GCC? – both were very helpful but not quite what I was looking for.

I have always just written programs for use on my own machine, which has never caused me any problems, but now I want to start running software on other machines and I’m wary of the runtime requirements.

EDIT: See below example instead, this was misleading.

Specifically, if I write a C++ program on a Windows machine, compiled with gcc through MinGW, and want to run it on another machine:

  • Do I have to send the libstdc++.dll with my program?
  • Is this single file (I assume placed in the executable’s directory) sufficient to allow the program to run?

Also, an identical example, except this time it is an Objective-C program. Is sending the libobjc.dll file to the other machine sufficient to allow the program to execute properly?

I am used to running programs on machines which have developer tools, etc, installed, but now I’m looking to run them on general purpose machines (friends’, colleagues’ etc), and I’m not quite sure what to do!


EDIT: In response to edifice‘s answer, I feel I should clarify what it is I’m looking for. I know how to identify the necessary DLL(s) (/dylibs, etc) that my programs use, (although I am accustomed to doing that work manually; I had not heard of any of the tools). My question was more “What do I do now?”

A more general example is probably needed:

Let’s say I have written a program which has object files derived from C++, C and/or Objective-C(2) code. I have used some Windows API code which compiled successfully using MinGW’s gcc. I also have a custom DLL I wrote in Visual Studio (C++).

I have identified which DLL’s my program will use at runtime (one of which may be GCC’s libobjc.dll, I’m not sure if this would/should make a difference on a Windows machine, but I want to make this as general as possible) – The “prerequisite DLLs“.

I would like to run it on my colleagues’ computers, most of which run Windows 7, but some now run Windows 8. Starting at the very start for the sake of completeness:

  • Do I need to transfer the prerequisite DLLs to my colleagues’ computers?
  • What directory should I place them in? (exe directory / a system directory?)
  • Once in place, will the presence of these DLLs allow the program to execute correctly? (Assuming it knows where to find them)
  • Are there any other files that should be transferred with the DLLs?

Basically I’m trying to determine the entire thought-process for developing and running an application on another machine in terms of system runtime requirements.

  • 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-06-16T12:47:40+00:00Added an answer on June 16, 2026 at 12:47 pm

    When loading DLLs, the first place Windows looks is the directory that the exe is in. So it will probably work just fine to put the DLLs there.

    For the Microsoft DLLs though, I think it makes more sense to ask your colleague to install the Visual C++ runtime, which is a redistributable package from Microsoft. Ideally you would make an installer using something like WiX and it would install that prerequisite for you, but it is OK to just tell your colleague to do it.

    Be sure to include a license file with your software if you include DLLs from gcc, because the GPL requires it.

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

Sidebar

Related Questions

I have just asked these two questions, one on flash seo url best practices
I'm far from good at jQuery, to start with. I have read these two
I have read a document that they say: In java there two types of
I have a .csv file with chinese characters. I need to read in these
I know there are other questions that have similar issues, but I have read
Is there any way to read the asp.net Import directives at runtime? I have
I have a SQL Server database which I can read from, is there a
I have two questions concerning fitting a gauss curve to histogram peaks. My first
I have read countless blogs, posts and StackOverflow questions about the new features of
It is my first post here. I would have two questions with regard to

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.