LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2004, 06:18 PM   #1
wogga
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
compiler(IDE) for linux


newbie here
i have installed redhat 9.0 and am learning the ropes.
i wanted to start compiling some code. some one suggested gnu, but i went to the site and i came across lots of greek.
is there any primer/tutorial which would guide me through installing a nice c compiler for linux(redhat 9.0)
 
Old 05-31-2004, 06:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Chances are that you already have the compiler
installed, just no ide for it.

If you're using KDE, you may want to try KDevelop,
Anjuta in Gnome, emacs if you're on your way to become
a linux hard-liner ;)

You can also have a look at Borlands Kylix (which is
very similar to Delphi/Borland C++ Builder).



Cheers,
Tink
 
Old 05-31-2004, 06:42 PM   #3
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
i tried gcc, cc,
bash does not recognise them

should i go for anjuta or borland, are they both freeware.

do they come with guidelines for newbies?
 
Old 05-31-2004, 06:46 PM   #4
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
You have to install gcc first
 
Old 05-31-2004, 07:06 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally posted by wogga
i tried gcc, cc,
bash does not recognise them

should i go for anjuta or borland, are they both freeware.

do they come with guidelines for newbies?
You'll certainly need to install gcc and g++ before you
can make use of either.

Kylix is free for private use, but you need to register with
Borland. What Kylix has that Anjust doesn't offer is the
Delphi-like interface builder with components (similar to
VB, just better).



Cheers,
Tink ...
 
Old 05-31-2004, 07:38 PM   #6
Zoko
Member
 
Registered: May 2004
Location: Morgantown, West Virginia
Distribution: Gentoo 2007.0, Straw Hat Linux
Posts: 31

Rep: Reputation: 15
http://www.gnu.org/directory/gpp.html G++ is what youll hove to install to start compiling programs.

You can write a program in pretty much any editor - Kate, emacs, jed, but there is dufinetly some bottor juited for the job.

Vi (or vim) has a lot of options however it has a steep learning curve, http://kdevelop.kde.org/ KDevelop is my editor of choice. It has a lot of really nice options Such as syntox highlighting and manf other good toys

ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.2.3.tar.gz This is the link to download G++ (gcc).

Basic tutorial on compiling a c/c++ program is here if you're interested http://www.luv.asn.au/overheads/compile.html

but ill sum it up far C++

Code:
g++ -Wall code.cpp -o compiled_name
that invokes gcc says to turn on errer reporting (-Wall) says compile that code (code.cpp) and compile it as the file "compiled_name" (-o compiled_name)

 
Old 05-31-2004, 08:17 PM   #7
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
i just discovered emacs under programming
i can write my simple program.
it's got
compile
shell command
debugger(GUD)

i think this is what i need, what do you gys think, it is strange that i could not find the cc or gcc at the command line though(which creates doubts in my mind)


i dont know how to use it though, i dont know whether i should go through an emacs tutorial or some other tutorial.
any advice would be much appreciated.
 
Old 05-31-2004, 08:29 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Well ... what to say :}

Emacs is "My IDE of choice", and as far as I'm
concerned, the ultimate editor ;)

Yes, you should read a tutorial, and also the
LQ-Wiki emacs entries.


Cheers,
Tink
 
Old 06-01-2004, 03:31 AM   #9
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
Can you point me to some link for emacs as an IDE
and also for LQ-Wiki emacs entries.
 
Old 06-01-2004, 02:55 PM   #10
Zoko
Member
 
Registered: May 2004
Location: Morgantown, West Virginia
Distribution: Gentoo 2007.0, Straw Hat Linux
Posts: 31

Rep: Reputation: 15
Quote:
Originally posted by wogga
Can you point me to some link for emacs as an IDE
and also for LQ-Wiki emacs entries.

http://wiki.linuxquestions.org/wiki/Main_Page There is the Wiki

Try searching Google for an emacs tutorial
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 02:12 PM
How to add a C/C++ compiler or developtment IDE itaydagani Amigo 9 01-29-2005 04:20 AM
java compiler(IDE) VS.net style? marlor Programming 12 01-21-2005 03:11 PM
Best IDE to learn IDE to leran on Linux alix123 Programming 4 01-07-2005 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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