Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-03-2008, 10:33 AM   #1
LQ Newbie
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
c compailer

now currently use Ubuntu system, in shell i have type gcc but doesn't open gcc compailer. error come like a no input file so you tell me how to doing
it. you give me command for open gcc compailer.

a wait for your reply.


Old 01-03-2008, 10:36 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Like the error says, you need to tell it which file(s) to compile. If I have a simple hello world program stored in hello.c, to compile it, I'd just run "gcc hello.c -o hello". The -o option allows you to supply a file name for the executable, rather than using the default, which is a.out. Edit: if you're looking for an integrated development environment (IDE), you may want to try Anjuta, KDevelop or Eclipse (and there are others, too).

Last edited by Nylex; 01-03-2008 at 10:48 AM.
Old 01-03-2008, 12:05 PM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If this behaviour is a surprise, you should read a gcc tutorial because I don't think you understand what it is supposed to be doing.

Try this (google found it for me):


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
C compailer juanb Linux - Software 4 12-09-2002 06:48 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:17 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