LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2005, 03:29 PM   #1
Jaster
Member
 
Registered: Jun 2004
Posts: 105

Rep: Reputation: 15
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.
 
Old 02-22-2005, 04:43 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
Old 02-22-2005, 06:46 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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
 
Old 02-22-2005, 08:12 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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;
 
Old 02-22-2005, 08:33 PM   #5
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Hi.

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

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
 
Old 02-22-2005, 11:19 PM   #6
benrose111488
Member
 
Registered: Jun 2004
Location: Wantage, NJ
Distribution: Fedora 7
Posts: 177

Rep: Reputation: 30
Bloodshed DEV-C++

.:Thumbs Up:.
 
  


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
Environment variables not working iansoundz Linux - General 3 12-02-2005 03:28 PM
Anyone can tell me how to get a 3Dfx card working on 3d environment under X.org? Shagrath239 Linux - Hardware 0 02-11-2005 12:57 PM
graphical environment not working mouse46 Mandriva 11 08-09-2004 09:33 AM
Setting My Working Directory Environment hey_joe Linux - Newbie 1 11-05-2003 10:26 AM
Must set the environment variable CC to a working compiler MrCarl Linux - Software 1 09-23-2003 03:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:14 PM.

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