LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-03-2008, 09:33 AM   #1
sunrajtech
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.

regards,

sunrajtech.
 
Old 01-03-2008, 09:36 AM   #2
Nylex
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 09:48 AM.
 
Old 01-03-2008, 11:05 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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):

http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
 
  


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
C compailer juanb Linux - Software 4 12-09-2002 05:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:44 AM.

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