Invalid pathname for executable

Kirby

Lifer
Apr 10, 2006
12,028
2
0
i'm writing an end of the year project for my high school c++ class, and i can compile my code, but when i try to run it, i get an error message "Invalid pathname for executable". I'm at my wits end. I'm using Borland 5.02 and doing BGI stuff, if it helps. I ran it two days before, then changed something minor, like a rectangle or something. anyway, i don't remember the specific details that i changed, so i can't go back. please, for gods sake, help me.
 

imported_Phil

Diamond Member
Feb 10, 2001
9,837
0
0
It's probably the location that the executable will be written to once compiled. Check your project options.
 

Kirby

Lifer
Apr 10, 2006
12,028
2
0
it has been writing to the bgi folder C:\BC5\BGI, and plus i created another project and told it to write there and i still get the same message. if anybody is willing, i'll email the program to you.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
1) Are you running from within the IDE?

2) If you have copied a project, then the settings may still be pointing to a different directory when the executable does not exist.
 

Kirby

Lifer
Apr 10, 2006
12,028
2
0
1) i think so
2) i know that it is pointing to the right directory b/c the new project i made has the exec in the right folder
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Last option. Does the name have spaces in it?
 

CPA

Elite Member
Nov 19, 2001
30,322
4
0
do what I would do with Microsoft C++, copy and paste the code to a text file, start a new project, copy and paste the code from the text file into the new project.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Or just run the executable by hand after compiling it in the IDE, it's probbaly not worth fighting with such an old, POS IDE.
 

Kirby

Lifer
Apr 10, 2006
12,028
2
0
well, i finally got it to run on another computer. beats me. thanks for the help though.