MinGW Developer Studio Question

Posted on 2004-08-31
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
  • 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 500 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
c++ how to tell if the progra is ctl or mfc atl ect 6 86
how to convert c++ code to Android App 3 110
Getting IP address 8 89
C++ mouse_event mouse look 7 99
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

820 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