I guess it's not...problem solved :p

I have a book called “C Programming in Easy Steps”.

It’s supposed to take you from knowing nothing to being somewhat knowledgeable (probably not professional, as there is sooooo much to programming that just can’t be covered in one book).

Anyway, one reason I decided to dual boot with Windows is that I thought for some strange resaon I might be able to concentrate on learning what I want on Linux; maybe because all the games (mostly) are for windows :stuck_out_tongue:

OK, so the book said to type “gcc -v” in a command line to see if you have GCC in your linux distro.

Apparently I don’t, as it answered “bash: gcc: command not found”.

Am I just doing it wrong, or does my version of Ubuntu/linux not have GCC?

do “sudo apt-get install build-essential”

I would recommend a good IDE like Dev-C++ for Windows or whatever came with Linux to start out. Doing command line compiling can get tedious when you’re learning and exploring.

That’s the thing…NOTHING came with my distro…in that area at least…:confused:

Bad suggestion imo.

Being a hobbyist programmer myself on Linux, I can say that there are great benefits to starting out from the command line, rather than loosing yourself in the “point and click” abstraction of your IDE of choice.

You just get a better perspective on the process of compiling itself, and you can write and compile programs on any machine with any simple text editor and a GCC package directly, without the need to set up all your delicate IDE settings first.

“g++ -o mysdlprogram.bin mysdlprogram.cpp -lSDL” There, clean cut, and right to the point.

An IDE is really something that you crossover to when you know enough to compile working, stable apps without it. It’s a tool to help you streamline your operations “when you already have your shit together” for the most part.

If you’re just starting out, all an IDE is gonna do is provide you with a false sense of “moving forward faster”, when in fact you’ll need to come back on many occasions, and actually figure out the parts that your IDE was doing for you.

Lol, and you say that like it’s supposed to come standard. Windows doesn’t come with a standard IDE either, so I can’t understand your confusion here.

Anyway there are alot of great IDE’s for Linux, most of which can easily be downloaded through apt/synaptic. Anjuta and Kdevelop would be the 2 that come to mind.

Also a google search would give you a wider listing.

However, I still recommend starting with just a text editor and compiling from the command line if you are just starting.

heh!

the only thing all linux distros have in comon is a Kernel named Linux…

you can find some easy distros for programming, take a peek over at distro watch…

If you are using Ubuntu, I think all you need is the DEV package… they put them all in one place called build essentials…

Totally agree with Social. IDEs are bad. They mix gui and application code and then you are confused if you are a beginner.

And like Knellotron said: sudo apt-get install build-essential and you have your programming environment :slight_smile:

Have fun!

I agree with Social stay away from IDEs untill you have masted the basics of programming & compiling from command line.

To get GCC go into synaptic and search for GCC, then install the program called GCC. Its that simple. :slight_smile:
I’m not all too fond of Ubuntu’s default editor, so I would suggest you try out Kate also known as Kwrite. I find it a more flexible program and easier to code in.

And don’t foget to download Make and learn about Makefiles. They will save you tons of time.

Blast, this forum REALLY needs a multi-quote feature :stuck_out_tongue:

Honestly, if you’re confused with an IDE, you don’t need to be bothering with programming or using a computer in general.

I didn’t imply that he should make GUI applications, I still think one should start out writing console applications, it’s just that keeping track of makefiles and juggling different compiler parameters can be tiring. Say what you want, but mastering command line compiling won’t do a damn thing in terms of programming skills.

It used to, but it was lost in the redesign.

I think you’ve missed the point out Valarking.

He will be learning C for the first time, and an IDE will add an extra layer of complexity not needed to start. As long as he can compile & knows the command to do so, & can type in a text editor he is fine.

With an IDE added complexity is involved and if something goes wrong (especially when learning a new language) you wont know if its either what you have put in or you dont have the right dependencies or is it a limitation of the IDE? Or have you setup the IDE right? All these are extra problems that could be easily avoided.

Once he has figured out the language and is fairly good with it, he should go to an IDE (if needed).

Laughing Cheese, whatever version of GCC you end up with will work fine with any beginning to novice programming book.

Alright, I don’t want this to become a debate thread, but that was a REALLY stupid statment to make IMO.

Like EVERYONE who uses a computer should learn how to program or it’s not worth their time?

Bull.

Please don’t make such idiotically broad generalizations.

Care to explain?

Probably.

That book seems to have a few errors in it, maybe it needs a revision? :smiley:

USE YOUR HEAD and try to understand what I said before you start rambling on.

Just using an IDE doesn’t require ANY PROGRAMMING SKILLS. You push the button to make a new project and then, wow, push another button to build.

Jesus Christ…

No, use YOUR head, and maybe think a little bit more on how your statements will be percieved. Notice what I bolded.

Just using an IDE doesn’t require ANY PROGRAMMING SKILLS. You push the button to make a new project and then, wow, push another button to build.

Jesus Christ…

That’s ridiculous.

You still have to know the language and know what your doing to make it work.

It really just gives you a lot of tools upfront that aid in software design.

Maybe all programming courses should start out with compiling from command line and what-not.

Big deal.

Read the last part of the first sentence.

But that’s ALL I’m going to say to you in this thread.

Good bye.:rolleyes:

You still have to know the language and know what your doing to make it work.

No you don’t. Any IDE I’ve ever used has the ability to create a basic template so you can go: new project->build->run

The IDE itself should not be confusing.

Maybe, but it doesn’t do anything USEFUL.

Come on people, quite being ridiculous or I’ll have to ask the mods to close this thread.:rolleyes:

Sure, you can make a blank form.

That’s about ALL though.

Good grief.

OK, back on topic ;):

I assume that’s GNU Make?