Game Programming and Development Tools

C for Ubuntu – Ereon

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Hey guys, I just installed Ubuntu on my laptop and I can't find a good, simple, plain C IDE and compiler combo to use. Does anyone know anything that is pretty much just basic functionality? I'm still trying to learn the language, so I don't need any of the fancy, flashing doodads.

------------------

How far that little candle throws its beams; So shines a good deed in a naughty world.

Portia The Merchant of Venice

NetCog

Member

Posts: 149
From:
Registered: 06-15-2006
do a search on the ubuntu forums for "c ides" or "c compiler". You'll get a handful of good opinions.

Personally I'm going to learn to use Eclipse, but others suggest a little more basic and linux-basic programs - like "pico" and gcc (or something like that).

Jari

Member

Posts: 1471
From: Helsinki, Finland
Registered: 03-11-2005
Hi Ereon, in case you didnt know C++ compilers can compile C as well. So if you install the GCC package it should have everything you need.

------------------
1Jo 2:9-10 He that saith he is in the light, and hateth his brother, is in darkness even until now. 10 He that loveth his brother abideth in the light, and there is none occasion of stumbling in him.
Joh 17:26 And I have declared unto them thy name, and will declare it: that the love wherewith thou hast loved me may be in them, and I in them.

[VoHW] (Help needed) [Blog] - Truedisciple (mp3)

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by Ereon:
Hey guys, I just installed Ubuntu on my laptop and I can't find a good, simple, plain C IDE and compiler combo to use. Does anyone know anything that is pretty much just basic functionality? I'm still trying to learn the language, so I don't need any of the fancy, flashing doodads.


I like Ubuntu/Kubuntu. If you're using Kubuntu get Kdevelop... it's simple. If you're using Ubuntu get Kdevelop (but try Eclipse anyway).

EDIT: Yes, GCC and G++ are good C/C++ compilers.. it's what almost every C/C++ programmer uses on Linux anyway

Go to a console Applications --> Acessories --> Terminal (or Kmenu --> System --> Konsole) and type:

sudo apt-get install kdevelop gcc colorgcc g++

or just search for kdevelop/eclipse in Synaptic or Adept.

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

[This message has been edited by CPUFreak91 (edited November 17, 2006).]

[This message has been edited by CPUFreak91 (edited November 17, 2006).]

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Aaaaand, that command line input does what CPU? I'd already installed Kdev on the suggestions of Jari and Clint, I just need a compiler. What would the command line be if I only wanted to install the compilers?

------------------

How far that little candle throws its beams; So shines a good deed in a naughty world.

Portia The Merchant of Venice

Jari

Member

Posts: 1471
From: Helsinki, Finland
Registered: 03-11-2005
Ok, since you have installed KDevelop you need the GCC compiler package unless it has been already installed. So Like CPU has shown "sudo apt-get install kdevelop gcc colorgcc g++" install KDevelop plus the compilers.
Hmm wouldnt just:
sudo apt-get install gcc
do? Because GCC packages should have or include everything when you install it because of the depencies.

You might need to install automake as well, unless its not installed yet.
But the best way to find out is to try out KDevelop and build your project, it should report about missing tools then.

------------------
1Jo 2:9-10 He that saith he is in the light, and hateth his brother, is in darkness even until now. 10 He that loveth his brother abideth in the light, and there is none occasion of stumbling in him.
Joh 17:26 And I have declared unto them thy name, and will declare it: that the love wherewith thou hast loved me may be in them, and I in them.

[VoHW] (Help needed) [Blog] - Truedisciple (mp3)

NetCog

Member

Posts: 149
From:
Registered: 06-15-2006
ummm....or if you are using gnome (or I assume also KDE), use the synaptics manager, it does most of the selection of the required additional components for a particular install.
D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
I would use GCC 3.x if i were you. With C development in paticular. It will already be compiled with Ubuntu, although they love using the latest releases of stuff, so i would guess it was version 4.

Meh, why don't you just use Emacs or something?

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler
"I believe in freedom... not freedom like America, freedom like a shopping cart"

NetCog

Member

Posts: 149
From:
Registered: 06-15-2006
I'd be willing to try out emacs if there was a decent book out there that didn't weigh a ton or get all gobbly-gook w/ programese for those of us who are just starting w/o a drive to live and breath it. Unlike a significant numbers of the books suggested by the C crowd on other sites. Some of those make my head hurt by the 3rd page.

I'm sure I could get all technical but choking down a steak when I can't chew yet is not fun.

[This message has been edited by NetCog (edited November 19, 2006).]

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
Emacs is fairly simple, i had no choice when I was like 8. Just google a quick emacs tutorial.

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler
"I believe in freedom... not freedom like America, freedom like a shopping cart"