LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-04-2010, 12:28 PM   #1
marquisor
Member
 
Registered: Sep 2010
Location: Germany
Distribution: Debian
Posts: 53

Rep: Reputation: 3
Post Small C/C++ IDE needed


hello everyone!

i'm learning C now, later C++. using DJGPP isn't so nice on MS-DOS yet, no LFNs etc. and other limitations that is only one terminal, no multitasking etc.

question:

is there a small IDE for linux console? (i'm using a celeron 333 atm). for C it would be sufficient i guess?
what i would need is a wide documentation, help on .h files, includes etc.
on MS-DOS i use RHIDE. something similar is appreciated.

later on i might use eclipse or code::blocks. read another thread about c/c++ IDE suggestions here yet, but that's too much i think for getting started.

thx for answers

regards
marquisor


PS: i don't like vi, elvis and other derivates. my favourite is jed. but if no way around, then i have to learn how to control vi *sigh*
 
Old 10-04-2010, 12:35 PM   #2
w7hd
Member
 
Registered: Aug 2004
Location: Tucson, AZ
Distribution: Ubuntu 9.04 & 10.10, RHEL 4 & 5
Posts: 48
Blog Entries: 3

Rep: Reputation: 16
I use Anjuta. It has a very nice interface and is easy to use. It is a lot like RHIDE.
 
Old 10-04-2010, 12:37 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally Posted by w7hd View Post
I use Anjuta. It has a very nice interface and is easy to use. It is a lot like RHIDE.
Except for being tied tightly to Gnome, which makes
it rather fat IMNSHO.


Cheers,
Tink

P.S.: OP, I moved your thread to programming, and would like
to point you at the sticky at the top of this forum.
 
Old 10-04-2010, 12:38 PM   #4
CapnStank
Member
 
Registered: Oct 2009
Distribution: Fedora, HPUX
Posts: 31

Rep: Reputation: 2
I personally found emacs easier to pick up if you're forced to run using the command line. Other than that eclipse is a bit heavier but definitely worth it since it helps along with dependencies and other things for new coders.
 
Old 10-04-2010, 12:39 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Learning vi is not so difficult at all. But maybe this http://www.pegasoft.ca/tia.html is the right one for you. Besides other programming languages there is support for C and C++.
 
Old 10-04-2010, 12:46 PM   #6
marquisor
Member
 
Registered: Sep 2010
Location: Germany
Distribution: Debian
Posts: 53

Original Poster
Rep: Reputation: 3
i read much about emacs. how far is this a standard? other derivates, clones, editors with same controls, keyboard shortcuts, handling?
i don't wanna "try" vi, emacs, elvis, vim etc. alltogether.
what if i would have to stick to ONE of them, what is recommended for coding?
i think i'll swallow the bitter pill and get used to emacs. or is that going to be replaced by more modern, user-friendly editors soon?
what do i have to install exactly on slackware 13.1 to get an emacs IDE running on console?

@Tinkster: sorry didn't see the sticky thread there. good stuff. but also very much for a beginner the gnome issue yes..

i read about kdevelop is dependent on kde stuff and so on. an ide without any dependencies would be best for me, as i want to have my code portable as possible, that mostly will be other windowmanagers?! MS-DOS, Windows and maybe 68k machines.

@TobiSGD: looks good, maybe i give it a go.

Last edited by marquisor; 10-04-2010 at 12:47 PM.
 
Old 10-04-2010, 12:59 PM   #7
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
A nice lightweight editor is 'nano'.

Linux boxes allow to install manpages, so help on header files and standard functions is available through 'man' command. For example:


Code:
sergei@amdam2:~> man -k stdio.h
stdio.h (0p)         - standard buffered input/output
, so then

[CODE]sergei@amdam2:~> man stdio.h

Or:

Code:
sergei@amdam2:~> man printf
Man: find all matching manual pages
 * printf (1)
   printf (3)
   printf (1p)
   printf (3p)
Man: What manual page do you want?
, then choose 3 . If you do not know what to choose, try one by one.

The bottom line: why do you need an IDE in the first place ?
 
1 members found this post helpful.
Old 10-04-2010, 01:29 PM   #8
marquisor
Member
 
Registered: Sep 2010
Location: Germany
Distribution: Debian
Posts: 53

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Sergei Steshenko View Post
A nice lightweight editor is 'nano'.

Linux boxes allow to install manpages, so help on header files and standard functions is available through 'man' command. For example:


Code:
sergei@amdam2:~> man -k stdio.h
stdio.h (0p)         - standard buffered input/output
...

The bottom line: why do you need an IDE in the first place ?
interesting! but where do i get those manpages? and how to install them?
are they part of some devel-packages?

ok, nano is on my slack here, but no syntax highlighting, integrated debugger which shows src-code line where the error is etc. therefore i want an IDE! or at least a capable editor with those features

ok wrote a small hello.c program in nano, saved, cc hello.c -o hello. and i'm done, yes...
 
Old 10-04-2010, 01:38 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
In Slackware you don't need devel-packages, development stuff is installed already with the "normal" packages. Manpages should also be installed if you install a package.
 
Old 10-04-2010, 01:45 PM   #10
marquisor
Member
 
Registered: Sep 2010
Location: Germany
Distribution: Debian
Posts: 53

Original Poster
Rep: Reputation: 3
Code:
root@slack333:~# man stdio.h
No manual entry for stdio.h
what packages are installed?
only have emacs:

Code:
root@slack333:~# slackpkg search emacs

Looking for emacs in package list. Please wait... DONE

The list below shows all packages with name matching "emacs".

[ installed ] - emacs-23.2-i486-1
[uninstalled] - emacspeak-ss-1.9.1-i386-1
[uninstalled] - emacspeak-32.0-i486-1

You can search specific files using "slackpkg file-search file".
 
1 members found this post helpful.
Old 10-04-2010, 01:49 PM   #11
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Code:
root@reactor: man -k stdio
DBD::Gofer::Transport::stream (3)  - DBD::Gofer transport for stdio streaming
DBD::Gofer::Transport::stream [] (3)  - DBD::Gofer transport for stdio streaming
__flbf []            (3)  - interfaces to stdio FILE structure
__fpending []        (3)  - interfaces to stdio FILE structure
__fpurge []          (3)  - interfaces to stdio FILE structure
__freadable []       (3)  - interfaces to stdio FILE structure
__freading []        (3)  - interfaces to stdio FILE structure
__fsetlocking []     (3)  - interfaces to stdio FILE structure
__fwritable []       (3)  - interfaces to stdio FILE structure
__fwriting []        (3)  - interfaces to stdio FILE structure
_fbufsize []         (3)  - interfaces to stdio FILE structure
_flushlbf []         (3)  - interfaces to stdio FILE structure
flockfile []         (3)  - lock FILE for stdio
ftrylockfile []      (3)  - lock FILE for stdio
funlockfile []       (3)  - lock FILE for stdio
getc_unlocked []     (3)  - non-locking stdio functions
getchar_unlocked []  (3)  - non-locking stdio functions
putc_unlocked []     (3)  - non-locking stdio functions
putchar_unlocked []  (3)  - non-locking stdio functions
stdio []             (3)  - standard input/output library functions
root@reactor:
Use man's -k (keyword) option to get all mentions of a particular keyword. The (3) indicates the page is in section (or chapter) 3 of the man pages. Most common pages are in section 8.

Try:
Code:
man stdio
 
Old 10-04-2010, 01:49 PM   #12
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by marquisor View Post
interesting! but where do i get those manpages? and how to install them?
...
It depends on your distro. It should have some kind of package manager, and the manager should have some kind of search function. Also, the website of your distro should have some info on packages.

One can run X on a 300MHz machine, and one can use in such a case some kind of light WEB browser, e.g. 'dillo'. The latter should be sufficient for simple sites like www.die.net - a lot manpages on it.

Last edited by Sergei Steshenko; 10-04-2010 at 02:41 PM.
 
Old 10-04-2010, 01:53 PM   #13
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by marquisor View Post
... integrated debugger which shows src-code line where the error is etc. ...
Well, 'gdb' alone (at least, the last gdb-7.2) shows the source line with its number in case of segmentation fault.

Already mentioned Emacs (exists for both UNIXish OSes and Windows) has a pretty good integration with 'gdb', though I don't use Emacs.
 
Old 10-04-2010, 02:09 PM   #14
marquisor
Member
 
Registered: Sep 2010
Location: Germany
Distribution: Debian
Posts: 53

Original Poster
Rep: Reputation: 3
yes i think i stick with emacs. have to go to find some useful .pdfs for it to get into learning it...
some tips where/how should i startup with emacs? :/

rhide on ms-dos is very nice. i'm looking for sometehing similar for linux console. debug window, feature to evaluate expressions etc.
Attached Images
File Type: jpg rhide.jpg (194.3 KB, 10 views)

Last edited by marquisor; 10-04-2010 at 03:48 PM.
 
Old 10-04-2010, 05:00 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Silly question .. why don't you just use RHIDE under linux?
http://www.rhide.com/

Has Linux d/ls available.


Cheers,
Tink
 
  


Reply

Tags
coding, console, dos, gcc, linux


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
Looking for IDE for small languege using XFCE Nathan1993 Linux - Software 1 10-29-2006 10:10 PM
small Java IDE linuxmandrake Linux - Software 1 03-27-2006 10:31 AM
small free java IDE Odin_of_Asgard Programming 10 04-18-2004 06:47 AM
Simple, small C++ IDE GATTACA Programming 8 01-16-2004 04:24 AM
Moving swap to another small IDE drive vdi_nenna Linux - Hardware 3 06-14-2002 10:35 AM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration