PDA

View Full Version : Running compiled files



kepler
11-08-2004, 12:07 AM
Is it possible to run C compiled files with GCC , while running Knoppix? I've tryed in several ways ( prog, ./prog, etc... ) but the console always tells me that it can't run binary files.

Isn't there a way?

Regards,

Kepler

OErjan
11-08-2004, 10:44 AM
EH? you do not RUN the files with gcc, you MAKE them with gcc, from sourcecode.
then to run your file, the comand ./file is used.
that tells the shell that the executable is in the directory you are in and that it should try to execute it.

kepler
11-08-2004, 01:30 PM
Hi, dear friend,

Of course you are right...I didn't mean to run files with GCC. As for the ./file it doesn't work - I've tryed; not even after a chmod +x

Regards,

Kepler