LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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, 05:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 03:02 PM   #3
recaicircir
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:09 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
Open Source Consulting | Domain Registration