LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-06-2005, 03:29 PM   #1
recaicircir
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?

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

Rep: Reputation: 164Reputation: 164
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.

Run
./a.out
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, 04:02 PM   #3
recaicircir
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks.
 
  


Reply


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 06:17 PM
GTK+ programming...error. sateeshgalla Programming 6 08-24-2005 11:42 AM
X Windows Programming Compilation Error cbranje Programming 8 01-26-2005 06:41 AM
Programming error. Rozi Linux - Software 1 04-19-2004 03:25 AM
gcc programming error ?? sheka&teka Linux - Newbie 2 09-18-2003 02:06 PM


All times are GMT -5. The time now is 02:59 PM.

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