Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


MinGW Developer Studio Question

Posted on 2004-08-31
Medium Priority
Last Modified: 2012-08-14
Ok...  hopefully this will be my last question for the day!  I just installed MinGW Developer Studio.  When I try to "Build & Execute" my code, I get an error as the windows console opens...  it's a message box saying "Cannot Execute Program".  The code compiles fine.  When I run the .exe generated upon building manually, it works fine also.  Any ideas?

Question by:fattumsdad
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 86

Expert Comment

ID: 11945764
I assume there's a problem regarding where the IDE expects the executable to be located and where it actually resides. You could check with FileMon ( where it tries to start the program from (this app has filter capabilities, use them or you will be drowned in information! :o)

Author Comment

ID: 11945995
I'll give that a shot when I get home (don't have admin priv at work).  Hopefully that'll fix my many many woes LOL!  
LVL 86

Accepted Solution

jkr earned 2000 total points
ID: 11946038
Well, there also should be some settings about where it starts the exe from and where the linker is instructed to place it - you could start by comparing them :o)

Author Comment

ID: 11946089
I think I figured it out!  I have the project saved in "C:\Documents and settings\ etc etc".  When I try to run the file from the IDE it only recognizes "C:\documents" in the path.  Is there a way I can make it recognize the spaces in dir names or should I just create another dir for these projects?
LVL 86

Expert Comment

ID: 11946276
>>Is there a way I can make it recognize the spaces in dir names

Try to enclose the path in quotes (in the edit box), that should work.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question