LinuxQuestions.org
Visit Jeremy's Blog.
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 03-13-2013, 09:10 AM   #1
anbarasi
LQ Newbie
 
Registered: Mar 2013
Location: bangalore
Posts: 13

Rep: Reputation: Disabled
gcc compiler??


can any1 tell me which command to use for gcc compiler!!
 
Old 03-13-2013, 09:11 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,888

Rep: Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920
have you tried the command gcc?
 
Old 03-13-2013, 09:15 AM   #3
anbarasi
LQ Newbie
 
Registered: Mar 2013
Location: bangalore
Posts: 13

Original Poster
Rep: Reputation: Disabled
yes i tried!

Quote:
Originally Posted by pan64 View Post
have you tried the command gcc?
i generally use g++ filename.cpp.but i want to know for gcc!
i tried tis gcc filename -o.c it dint wrk.
plz let me knw
 
Old 03-13-2013, 09:17 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,888

Rep: Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920Reputation: 2920
man gcc will give you some help.
gcc -o <target filename> filename.c
or
gcc -c filename.c
or ....
the usage of gcc and g++ are more or less similar
 
2 members found this post helpful.
Old 03-13-2013, 09:24 AM   #5
anbarasi
LQ Newbie
 
Registered: Mar 2013
Location: bangalore
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by pan64 View Post
man gcc will give you some help.
gcc -o <target filename> filename.c
or
gcc -c filename.c
or ....
the usage of gcc and g++ are more or less similar
thank u!!!
 
  


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
[SOLVED] [Question] How to compile a gcc compiler for another machine which got no c compiler on it shone27 Linux - Newbie 9 09-28-2011 08:32 PM
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 06:11 PM
GCC compiler .. pashupathinath Programming 1 10-21-2004 01:20 PM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 07:17 PM
GCC compiler? Forezt Linux - Newbie 2 11-23-2003 03:07 PM

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

All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration