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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:28:28+00:00 2026-05-28T05:28:28+00:00

The Idea I’ve compiled a C++ exe using G++ on Cygwin, and I want

  • 0

The Idea
I’ve compiled a C++ exe using G++ on Cygwin, and I want to be able to get the output of that exe into my HTML via PHP. That is, let’s say I have a C++ executable “test.exe” which outputs “Hello, World!” when run. Then logically, I should be able to do

<?=exec("./test.exe")?>

To send the output of the test.exe file to the file.

The Issue
I’m testing this on a local WAMP server on Win7. Apparently, exec and system calls on Win7 WAMP go through the Windows command prompt, meaning it’s running batch instead of bash. For some reason, batch doesn’t like Cygwin-compiled executables, giving the error:

“The program can’t start because cygwin1.dll is missing from your
computer. Try reinstalling the program to fix this problem.”

So, how can I make it so windows batch can execute cygwin-compiled files?

  • 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-28T05:28:28+00:00Added an answer on May 28, 2026 at 5:28 am

    You could do a few things:

    1. You could compile your application with Visual Studio (I believe Microsoft provides a free version … Visual Studio Express). This is the route I would personally take. You won’t need to rely on the cygwin DLL’s (unless you’re compiling in some part of the cygwin install), and your executable would be much more portable across Windows systems.
    2. You could place the location of the cygwin1.dll into your system PATH environment variable. This has the advantage of future executables built using cygwin running successfully, but has the disadvantage that should you want to distribute your application, other users wouldn’t be able to run it out of the box.
    3. You could copy cygwin1.dll from the /bin directory of your cygwin installation into the same folder as your executable. This is portable (among Windows systems … to some extent), but has the disadvantage that it might violate the Cygwin license (not having read the license, I’m not sure). I would only recommend this route for testing purposes.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

idea Via jQuery, I was able to mark all :first-child and :last-child elements in
Simple idea: I have two images that I want to merge, one is 500x500
Any idea how to render a PDF using iTextSharp so that it renders the
Bad idea mixing HTML and PHP? I was reading this tutorial and it seems
Using IDEA 9/10, I don't want to use MVN2 anymore (reasons mostly similar to
Any idea how to draw square gradient using xml in android? http://www.filterforge.com/wiki/index.php/Square_Gradient
The idea is to send the current URL via AJAX to a PHP. This
any idea how if the following is possible in PHP as a single line
Any idea on how to check whether that list is a subset of another?
The idea is to move all of the right elements into the left and

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.