Page 1 of 1
How in the world...
PostPosted: Wed Jul 21, 2004 3:22 pm
by Icarus
do you execute the programs you write in g++? It compiles, it creates the application, everything is fine until you try to run it. In bash, it says <program name>: command not found, or some such, and in the gui, I have no idea what program to use. Please, anyone? To those what don't know, this is on Linux.
PostPosted: Fri Jul 23, 2004 6:58 am
by Mithrandir
Well, when you first compile the program, it should spit out a file (like a.out). To execute, you sometimes have to tell it the complete path. You can use "dot slash" to say it's in the current directory. So it might look something like:
./a.out
If that doesn't work, you may have to make it executable, by using the chmod command:
chmod 700 a.out
This is all assuming the filename is a.out, of course. Let us know if it doesn't work.
PostPosted: Tue Jul 27, 2004 3:17 pm
by Icarus
Thank you, sir. I'll keep that in mind.