Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suggest a C++ IDE for me to ease back in to programming.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hackerError
Guru
Guru


Joined: 14 Mar 2003
Posts: 341
Location: Reston, VA, USA

PostPosted: Fri Nov 13, 2009 3:43 pm    Post subject: Suggest a C++ IDE for me to ease back in to programming. Reply with quote

Hello,

the coding bug bit me recently, and I would like to start developing and coding again. It has been several years since I did any coding (Probably since 2000), and what little coding I did wasn't all that impressive. I used Microsoft Visual Studio, and it was fairly easy to do everything, there was line numbering, syntax highlighting, and I could compile, (and launch) my programs from right within Visual Studio.

I started playing with coding again simply using nano, and after feeling very out of my element when my basic "Hello World" program failed to compile
(iostream.h no longer exists...?) decided to search for a IDE that would make me feel more comfortable.

I guess what I want is:
Tabs for multiple source files.
Syntax coloring.
Line numbers
Ability to compile / run from within the program.
a debugger
ability to do things like right click a function and "go to definition"

What do you guys use/suggest? I plan to code both console applications, and gui applications. Though I have no experience with the latter (yet).
_________________
Before you insult someone, it is often best to walk a mile in their shoes.

That way when you insult them you're already a mile away and have their shoes.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Nov 13, 2009 3:52 pm    Post subject: Reply with quote

If you like visual studio, then you'll like this, too:
Code:

dev-util/codeblocks

_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Nov 13, 2009 4:10 pm    Post subject: Reply with quote

Netbeans and its C++ plugin? Eclipse (which I know nothing about)? There's
a good few IDEs out there, some more specialised than others.

Will
Back to top
View user's profile Send private message
hackerError
Guru
Guru


Joined: 14 Mar 2003
Posts: 341
Location: Reston, VA, USA

PostPosted: Fri Nov 13, 2009 4:41 pm    Post subject: Reply with quote

keenblade wrote:
If you like visual studio, then you'll like this, too:
Code:

dev-util/codeblocks


That looks like exactly what I was after - emerging now and I'll report back!


I'll try eclipse if codeblocks doesn't work out.
_________________
Before you insult someone, it is often best to walk a mile in their shoes.

That way when you insult them you're already a mile away and have their shoes.
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Fri Nov 13, 2009 5:26 pm    Post subject: Reply with quote

Another recommendation for Netbeans. And for C++/Qt projects qt-creator.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5383

PostPosted: Fri Nov 13, 2009 6:16 pm    Post subject: Reply with quote

even kdevelop4 which is still in development but is good
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
sam_i_am
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 129

PostPosted: Fri Nov 13, 2009 8:08 pm    Post subject: Reply with quote

yngwin wrote:
for C++/Qt projects qt-creator.


I can't stress enough how good this one is. Especially, if you are doing anything with Qt, the integration is very nice and it feels very snappy.
_________________
Sam
Back to top
View user's profile Send private message
hackerError
Guru
Guru


Joined: 14 Mar 2003
Posts: 341
Location: Reston, VA, USA

PostPosted: Fri Nov 13, 2009 8:46 pm    Post subject: Reply with quote

I'm really liking the codeblocks aspect of creating a main.cpp for me with generoc qt/opengl/sdl/whatever as I've never coded using these it's great to get a skeleton right off the bat of a gui, or a graphic window. I'm emerging netbeans still (walked away and didnt realize there were fetch restricted packages) and I'll report back on that.
_________________
Before you insult someone, it is often best to walk a mile in their shoes.

That way when you insult them you're already a mile away and have their shoes.
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Fri Nov 13, 2009 9:12 pm    Post subject: Reply with quote

I don't use an IDE, but I've played with Qt Creator and Netbeans for a few minutes each and both seem fine.

If you are going to do C++ programming, then you need to go get yourself a copy of Accelerated C++ by Koenig and Moo.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sat Nov 14, 2009 2:04 am    Post subject: Reply with quote

I know people will flame me, but Vim can do everything you listed, and it also has a really good editor.
Back to top
View user's profile Send private message
m.wales
n00b
n00b


Joined: 06 Sep 2006
Posts: 18

PostPosted: Sat Nov 14, 2009 3:21 pm    Post subject: Reply with quote

My vote is definitely for Eclipse's CDT, although I'm on a bit of a Vim streak at the moment.
_________________
- Mark W -
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sat Nov 14, 2009 3:50 pm    Post subject: Reply with quote

widremann wrote:
I know people will flame me, but Vim can do everything you listed, and it also has a really good editor.


Can't agree more. I exclusively use vim for all my programming needs.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
gajop
n00b
n00b


Joined: 14 Oct 2009
Posts: 21

PostPosted: Sun Nov 15, 2009 9:01 pm    Post subject: Reply with quote

yeah, vim's nice, but if he likes microsoft visual studio or codeblocks, i don't think it's what he wants
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 675

PostPosted: Sun Nov 15, 2009 11:14 pm    Post subject: Re: Suggest a C++ IDE for me to ease back in to programming. Reply with quote

hackerError wrote:
(iostream.h no longer exists...?
fyi:
http://www.devx.com/tips/Tip/14447 wrote:
January 2, 2001
<iostream.h> or <iostream>?
Although the <iostream.h> library was deprecated for several years, many C++ users still use it in new code instead of using the newer, standard compliant <iostream> library. What are the differences between the two? First, the .h notation of standard header files was deprecated more than 5 years ago.[...]Finally, <iostream> components are declared in namespace std whereas <iostream.h> components are declared in the global scope.


I, for one, use emacs. I understand it's not what you want. (even though it does actually have all the functionality you specified)
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sun Nov 15, 2009 11:19 pm    Post subject: Reply with quote

gajop wrote:
yeah, vim's nice, but if he likes microsoft visual studio or codeblocks, i don't think it's what he wants

I like Visual Studio, too, but there is no equivalent on Linux (except maybe Eclipse). The IDEs all suck. Best bet is to go with tried and true Vim or Emacs and a couple of terminals.
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Sun Nov 15, 2009 11:55 pm    Post subject: Reply with quote

Does any Linux IDE support C++1x yet? I was using Netbeans for a while, but I got tired of it complaining about my C++1x code.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5383

PostPosted: Mon Nov 16, 2009 6:16 am    Post subject: Reply with quote

dmitchell wrote:
Does any Linux IDE support C++1x yet? I was using Netbeans for a while, but I got tired of it complaining about my C++1x code.

isn't that a compiler issue?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
jw5801
Apprentice
Apprentice


Joined: 12 Jun 2008
Posts: 251
Location: Melbourne, Australia

PostPosted: Mon Nov 16, 2009 6:23 am    Post subject: Reply with quote

widremann wrote:
I know people will flame me, but Vim can do everything you listed, and it also has a really good editor.


vim is a terrible disgraceful editor! Use emacs!

</flame> ;)
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Mon Nov 16, 2009 7:48 am    Post subject: Reply with quote

DaggyStyle wrote:
isn't that a compiler issue?

No, I don't think so. Netbeans performs its own source analysis for purposes of extracting information about classes, functions, files, syntax highlighting, and so on. Its editor marks C++1x constructs as errors. :?
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Mon Nov 16, 2009 2:46 pm    Post subject: Reply with quote

jw5801 wrote:
widremann wrote:
I know people will flame me, but Vim can do everything you listed, and it also has a really good editor.


vim is a terrible disgraceful editor! Use emacs!

</flame> ;)

For the same reason that Lisp is a cool idea, but I'd never use it for most programming projects, I also will prefer quick-and-dirty Vim to the functionally elegant, but obtuse Emacs.
Back to top
View user's profile Send private message
gajop
n00b
n00b


Joined: 14 Oct 2009
Posts: 21

PostPosted: Tue Nov 17, 2009 1:51 pm    Post subject: Reply with quote

dmitchell wrote:
DaggyStyle wrote:
isn't that a compiler issue?

No, I don't think so. Netbeans performs its own source analysis for purposes of extracting information about classes, functions, files, syntax highlighting, and so on. Its editor marks C++1x constructs as errors. :?

It's a compiler thing, well not sure about netbeans' syntax highlightning or what compiler it uses (i bet it's GCC by default), but you need to get new GCC. http://gcc.gnu.org/projects/cxx0x.html The latest one we have in the repos is 4.4, so some things that newer GCCs have still isn't in, but it supports "auto" and rvalue references, which are some of the many things i'm looking forward to. After getting the newest GCC, you need to select the proper version with what gcc-config -l says. Then you should relog or do source /etc/profile to have your current shell update it.
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Tue Nov 17, 2009 8:44 pm    Post subject: Reply with quote

gajop wrote:
It's a compiler thing, well not sure about netbeans' syntax highlightning or what compiler it uses (i bet it's GCC by default), but you need to get new GCC. http://gcc.gnu.org/projects/cxx0x.html The latest one we have in the repos is 4.4, so some things that newer GCCs have still isn't in, but it supports "auto" and rvalue references, which are some of the many things i'm looking forward to. After getting the newest GCC, you need to select the proper version with what gcc-config -l says. Then you should relog or do source /etc/profile to have your current shell update it.

Thanks, but I'm already using 4.4 and of course I compile my projects with -std=c++0x. There is no problem with compilation. The only problem is that (a) the Netbeans editor is marking C++1x stuff as syntax errors and (b) Netbeans isn't nearly as smart as this.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum