Solved

MinGW Developer Studio Question

Posted on 2004-08-31
5
627 Views
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?

Thanks,
Tony
0
Comment
Question by:fattumsdad
[X]
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
5 Comments
 
LVL 86

Expert Comment

by:jkr
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 (http://www.sysinternals.com/ntw2k/source/filemon.shtml) where it tries to start the program from (this app has filter capabilities, use them or you will be drowned in information! :o)
0
 
LVL 1

Author Comment

by:fattumsdad
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!  
0
 
LVL 86

Accepted Solution

by:
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)
0
 
LVL 1

Author Comment

by:fattumsdad
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?
0
 
LVL 86

Expert Comment

by:jkr
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Header of docx file 17 145
How to print into std::string like sprintf using C++11? 12 189
gdb doesn't stop on breakpoint 2 140
why doesn't assert terminate here? 2 18
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

751 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