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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-22-2008, 07:02 PM
|
#1
|
|
Member
Registered: May 2001
Posts: 42
Rep:
|
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!
|
|
|
|
01-22-2008, 08:07 PM
|
#2
|
|
Member
Registered: Nov 2003
Distribution: Arch
Posts: 31
Rep:
|
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.
|
|
|
|
01-23-2008, 12:36 AM
|
#3
|
|
Member
Registered: Oct 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 33
Rep:
|
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
|
|
|
|
01-23-2008, 12:42 AM
|
#4
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
Rep:
|
Try out Netbeans, Eclipse is fine too. They are slightly slow as they run on java but they are very good.
|
|
|
|
01-23-2008, 12:56 AM
|
#5
|
|
LQ Newbie
Registered: Jan 2008
Location: Shanghai China
Distribution: Ubuntu
Posts: 8
Rep:
|
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 ...
|
|
|
|
01-23-2008, 03:09 AM
|
#6
|
|
Member
Registered: May 2001
Posts: 42
Original Poster
Rep:
|
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
|
|
|
|
01-23-2008, 07:00 PM
|
#7
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
Rep:
|
Quote:
Originally Posted by Hachaso
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.
|
|
|
|
01-23-2008, 09:22 PM
|
#8
|
|
Senior Member
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757
Rep:
|
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. 
|
|
|
|
01-24-2008, 03:11 AM
|
#9
|
|
Member
Registered: May 2001
Posts: 42
Original Poster
Rep:
|
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.
|
|
|
|
01-24-2008, 06:35 AM
|
#10
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
Rep:
|
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.
|
|
|
|
01-24-2008, 03:35 PM
|
#11
|
|
Member
Registered: Sep 2006
Distribution: Ubuntu
Posts: 64
Rep:
|
I'd recommend code::blocks 
|
|
|
|
01-26-2008, 10:44 PM
|
#12
|
|
Member
Registered: Jul 2007
Posts: 110
Rep:
|
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)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|