Compiling C in KDE

John L Fjellstad john-ubuntu at fjellstad.org
Mon Jul 10 23:38:42 UTC 2006


"Dotan Cohen" <dotancohen at gmail.com> writes:

> John, thank you for the explanation! I should have maybe been clearer
> as to my intentions:
> I'm studying C in the university. Sometimes I make five hundred small
> changes to very simple code and need to run it after each change. This
> is where the ability to run within the editor is important. We're not
> learning to create GUIs, rather it is an introductory course
> (recursive functions, arrays, pointers, etc). I need an editor that I
> can compile and run code inside the editor- an IDE in other words.

Both emacs and vim lets you call Makefiles inside the editor.  Also,
note people have written some major programs using these tools.

For instance, in emacs I would do this
esc x
compile
(as in, push esc x, then type compile)

You will now have the option to call make.
The nice thing is make inside emacs will compile it, and you can also
jump to any errors in the code (high light the error code, and type 
Ctrl c c

You can also compile your project through the menu (Tools->Compile).  And
on the error, middle click with the mouse to go to that error.

All these are of course dependent on you already written the Makefile.

I think the "problem" is (if you want to call it that) is that unix
people are so used to the power of the their editors (vim, emacs) that
they haven't seen the "need" for an IDE.

I did some more googling around, and found this:
http://www.anjuta.org/

Never tried it though, so I can't really recommend it.

Actually, this site has a list of IDE for C and C++, you might want to
check out:
http://www.freebyte.com/programming/cpp/#cppcompilers

-- 
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes





More information about the kubuntu-users mailing list