LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   favorite C working environment? (https://www.linuxquestions.org/questions/programming-9/favorite-c-working-environment-293507/)

Jaster 02-22-2005 02:29 PM

favorite C working environment?
 
hi everyone, I just got debian (amd64 port) up and running and I've decided it's high time I teach myself some C. I have three questions:

1) what's you favorite working environment (vim, some IDE, etc etc)?
2) will there be any overhead in setting up the environment you mention (like pointing it to libraries and the like because I have NO idea where such things are stored atm)

3) can I use gcc and a C file created in a text editor to run C code?

Thanks all, sorry for the newb questions, I don't know C or C++ so the C world is new to me. I don't know much about programming in linux either lol. Thanks for the help.

itsme86 02-22-2005 03:43 PM

Quote:

3) can I use gcc and a C file created in a text editor to run C code?
It definitely is, and this is my preferred environment. Just open up a shell, use nano as my text editor, and then compile from the shell with gcc.

Mega Man X 02-22-2005 05:46 PM

I like the IDE Anjuta a lot for C programming:

http://anjuta.sourceforge.net/

For text editor, Vim is my favorite. But things can get really messed up when coding huge applications and using separated files for some important modular functions, so I think an IDE is nice and handy in this case...

Basically, I use vim for quick and dirty programming (specially quick html fixes, editing configuration files and remote editing) and anjuta when I want get serious and make time worthy by compiling, running and debugging by simply pressing a single key :)

frieza 02-22-2005 07:12 PM

i use the emacs text editor... as for overhead? the header files needed should already be installed, you just include them in your program with

#include <header.h>

for c++
#include <header>

using namespace std;

jonaskoelker 02-22-2005 07:33 PM

Hi.

I'd recommend emacs. Then again, I believe that all vim users are masochists by nature :p

seriously, it's a good IDE for anything. As for automagic compilation, gcc -M goes a long way (but nothing beats a handtuned makefile). One thing I like about emacs is that you can have two shells open at the same time as viewing your file. Compiling is easy:
$ gcc foo.c bar.c

benrose111488 02-22-2005 10:19 PM

Bloodshed DEV-C++

.:Thumbs Up:.


All times are GMT -5. The time now is 11:36 PM.