LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-22-2008, 07:02 PM   #1
Hachaso
Member
 
Registered: May 2001
Posts: 42

Rep: Reputation: 15
What C/C++ programming IDE?


Hi!

I'm currently using Ubuntu 7.10 and I have decided to start programming in C/C++.

Well the problem I have is that I don't know what IDE to install.
Where can I find it etc.

Well I heard about Eclipse. Does it use the Gnu Compilers?

I would like an IDE that's delivered with a compiler, debugger etc.
Something like Visual Studio for Windows.

Thanks!
 
Old 01-22-2008, 08:07 PM   #2
peart
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 31

Rep: Reputation: 16
Hello,

Eclipse + CDT will indeed do the trick. Eclipse should detect and use gcc, if you have it installed. There is also Code::Blocks, which visually looks more like VC++. It will also use your gcc and gdb. I personally prefer Code::Blocks, but it's a matter of taste.

Eclipse is slower than C::B, but is also way more stable. C::B is still under heavy development.

I think most people will suggest you use Anjuta. I have little experience with it, so I'll let others comment on it.
 
Old 01-23-2008, 12:36 AM   #3
curtisa
Member
 
Registered: Oct 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 16
Hello,
You could also try Netbeans; the latest version supports C/C++ very well. You can read about it at ...
http://www.netbeans.org/features/cpp/index.html
Alex
 
Old 01-23-2008, 12:42 AM   #4
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 725

Rep: Reputation: 33
Try out Netbeans, Eclipse is fine too. They are slightly slow as they run on java but they are very good.
 
Old 01-23-2008, 12:56 AM   #5
super_hill
LQ Newbie
 
Registered: Jan 2008
Location: Shanghai China
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Smile reply

I think the latest kdevelop is a nice c/c++ IDE tool. And visual slick is also a option if you want something similar to visual studio.

But in linux, most of the programmer prefer using vi, emacs ...
 
Old 01-23-2008, 03:09 AM   #6
Hachaso
Member
 
Registered: May 2001
Posts: 42

Original Poster
Rep: Reputation: 15
About debugging

Thanks a lot for all the helpful answers.

I was wondering how debug with the Gnu tools work.
If I use Emacs and Gcc, how do I do to debug the code?

In Visual Studio you just do a Debug build and set the breakpoint where you want it. Is it similar with GNU tools and Emacs?

What about Tracing the code and doing a Watch on a variable, pointer?

Thanks
 
Old 01-23-2008, 07:00 PM   #7
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 725

Rep: Reputation: 33
Quote:
Originally Posted by Hachaso View Post
Thanks a lot for all the helpful answers.

I was wondering how debug with the Gnu tools work.
If I use Emacs and Gcc, how do I do to debug the code?

In Visual Studio you just do a Debug build and set the breakpoint where you want it. Is it similar with GNU tools and Emacs?

What about Tracing the code and doing a Watch on a variable, pointer?

Thanks
The GNU Debugger: gdb can do it. But it's command line based and it is very very hard to master if you have already get used to Visual Stuidio. Try out Eclipse or Netbeans.
 
Old 01-23-2008, 09:22 PM   #8
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 78
Quote:
I'm currently using Ubuntu 7.10 and I have decided to start programming in C/C++.
Just starting out, why don't you learn the old fashioned way first without using a GUI. Use the command line tools: vi, gcc, gdb, make, etc. Do some command line stuff before graduating to point-n-click.
 
Old 01-24-2008, 03:11 AM   #9
Hachaso
Member
 
Registered: May 2001
Posts: 42

Original Poster
Rep: Reputation: 15
Let me refrase. I don't mean just started programming. Well it's kind of the truth. Started programming using Linux. But I have been programming quite a lot under Windows.

That's why I need help finding good tools to do the same but using Ubuntu Linux and Gnome.
 
Old 01-24-2008, 06:35 AM   #10
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 725

Rep: Reputation: 33
With your experience you may not have any problem using gdb, gcc, text-editor combo to form an IDE.
But if you want something big, and familiar to window then try Netbeans and Eclipse.
 
Old 01-24-2008, 03:35 PM   #11
Shautieh
Member
 
Registered: Sep 2006
Distribution: Ubuntu
Posts: 64

Rep: Reputation: 15
I'd recommend code::blocks
 
Old 01-26-2008, 10:44 PM   #12
iwasapenguin
Member
 
Registered: Jul 2007
Posts: 110

Rep: Reputation: 15
I think your real place to start is here: http://www.catb.org/~esr/writings/taoup/html/

Its a book on programming Unix style.
As an ex-windows myself I was initially puzzled by the strange concept of modularity I kept on meeting.
The thing is that the writing of a program is divided up between its component task and then each of these has a program that does that and does that well.

If you want something a bit speadier to work with than straight gcc though, you can automate that with another command line program called make.

e.g.

Quote:
objects = one.o two.o three.o
program: $(objects)
g++ $(objects) -o program
.cpp.o:
g++ -c $<
This will compile 'one.cpp' 'two.cpp' and 'three.cpp' into 'program'

NOTE: g++ is gcc running in C++ mode (gcc actually automates more programs, for modularities sake)
 
  


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
KDevelop IDE and C++ programming lein Programming 11 08-01-2006 06:33 AM
ide for programming sharapchi Programming 16 05-21-2006 10:54 PM
Good IDE for c++ programming ? mohtashami Programming 6 10-03-2005 01:12 PM
A Simple Programming IDE for X. xarius Programming 8 02-25-2004 12:10 PM


All times are GMT -5. The time now is 09:18 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