Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2005, 02:29 PM   #1
LQ Newbie
Registered: May 2005
Posts: 2

Rep: Reputation: 0
C programming error

Hello there,

I am new to Linux and I have Fedora Core 3 installed on my computer.
After I compile a C file with gcc or cc I cannot execute the compiled program and get an error message saying

$ gcc prog1.c
$ a.out
bash : a.out is not a command

What should I do to run my compiled files?

Old 05-06-2005, 05:23 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,671

Rep: Reputation: 218Reputation: 218Reputation: 218
Moved: This thread is more suitable in a more technical forum like Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

To run it simply with a.out you need to have the directory you have the file in $PATH environmental variable.
Old 05-08-2005, 03:02 PM   #3
LQ Newbie
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel programming error...cannot see usb label Yerp Linux - Software 0 11-27-2005 05:17 PM
GTK+ programming...error. sateeshgalla Programming 6 08-24-2005 10:42 AM
X Windows Programming Compilation Error cbranje Programming 8 01-26-2005 05:41 AM
Programming error. Rozi Linux - Software 1 04-19-2004 02:25 AM
gcc programming error ?? sheka&teka Linux - Newbie 2 09-18-2003 01:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration