C++ editor and compiler suggestion

ThatsABigOne

Diamond Member
Nov 8, 2010
4,422
23
81
I have been using CentOS and Ubuntu for last 3 weeks. I used EMACS and the terminal command g++ -o yadda yadda.cpp.

But I want to move back to windows as my laptop's power management in Ubuntu is effed up (20 min battery life). Where as in Windows, I have Battery Saving, which downclocks my t9600 and gtx260m.

What are good alternatives for C++ editors and g++ thingy for Windows OS?

Thank you in advance.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
I still use vim and gcc in Windows....

Check out the sticky at the top of the thread, there are many free IDEs listed for Windows.
 

ThatsABigOne

Diamond Member
Nov 8, 2010
4,422
23
81
Thank you, I have downloaded VCC. And it is very similar to emacs. Thanks again.

Now for Gcc, I can't seem to find a link that would work for my windows installation. There are way too many to choose from. lol What link should I use? If you could point to the link, that would be very much appreciated!

http://gcc.gnu.org/install/specific.html

I am trying to find that is the closest alternative to terminal type command in linux. Does CMD in Windows work in sort of same way?
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
Install cygwin and use the same tools.

Can you recommend a nice C++ IDE for Ubuntu?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
You can install cygwin if you want a more linux like shell interaction. Honestly though, if you are dead set on using a Linux like environment in Windows, I would just run Linux in a virtual machine through Windows and call it a day.
 

Cogman

Lifer
Sep 19, 2000
10,286
147
106
cygwin has the best bash implementation on windows, however, its version of the gcc links all binaries to a cygwin dll that can really kill performance. Cygwin is all about putting a POSIX environment on windows.

MingW, on the other hand, is all about trying to use native windows stuff whenever possible. It produces much quicker and leaner binaries with no dependencies. It also has its own bash environment (MYSYS) which is "OK" but not as good as cygwin.

Most free IDEs for windows will use a version of MingW.


In windows, hands down the best IDE for C++ development is Visual Studios. After that, the runners up really all have similar features. I prefer Netbeans for MingW C++ development, followed by Code::Blocks and then Eclipse (though, they are all really pretty similar).
 

Cogman

Lifer
Sep 19, 2000
10,286
147
106
If you can stomach giving your $$$ to Microsoft, go with Visual Studio.

Hands down best IDE IMHO.

If you have an edu email, you can get it for free. If you don't, you can get the express edition for free (loses some of the goodness, but is still pretty dang good).
 
Last edited:

Cogman

Lifer
Sep 19, 2000
10,286
147
106
Yep, this is what we always used in classes as it was free, but was awesome.

https://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

There are limitations as you're not supposed to use it for commercial use, and all that :)

False, there is nothing in the Visual studios express license that forbids you from using it for commercial purposes. The only place you run into this issue is doing silverlight development which involves using the H.264 or VC-1 codecs... but that isn't really microsoft's fault.
 

YoungGun21

Platinum Member
Aug 17, 2006
2,546
1
81
You aren't supposed to use the Professional version that you can get for free as a student for any commercial projects, but I think Express is fine. How would they even know if you did though?

Not that I condone or partake in any such behavior.
 

postmark

Senior member
May 17, 2011
307
0
0
You aren't supposed to use the Professional version that you can get for free as a student for any commercial projects, but I think Express is fine. How would they even know if you did though?

Not that I condone or partake in any such behavior.

Ok, that is correct. We used to use the version that was distributed to students through the DreamSpark program which was the PRO version that did state you couldn't use it for commercial purposes. The Express version doesn't seem to have that in the license text.
 

Born2bwire

Diamond Member
Oct 28, 2005
9,840
6
71
Did someone mention Visual Studio yet...

I got mine through DreamSpark and I can still upgrade using the program to 2010 but my Intel compilers are only compatible with 2008. But it really is a good IDE.
 

ThatsABigOne

Diamond Member
Nov 8, 2010
4,422
23
81
I have installed Visual C++ express. I will see how it goes.

Edit: I have copied some code over to an empty project, but I cannot press the green button 'play' to compile. What gives?

Thank you in advance.
 

bhanson

Golden Member
Jan 16, 2004
1,749
0
76
Microsoft has done an outstanding job with their Express editions and availability for student software, in my opinion.
 

ThatsABigOne

Diamond Member
Nov 8, 2010
4,422
23
81
Well, I tried to install MS VS on my laptop, it turned out that it will refuse to work..

I am resorting to gVim and cygwin.

I know linux type environments, but I cannot find the folder on my C drive that I created with this command: mkdir Labs. When I type in pwd, it says Administrator/home. I went there, but home folder is not there..

Help?

Thank you
 

Modelworks

Lifer
Feb 22, 2007
16,240
7
76
give codelite a try.
http://www.codelite.org/

The problem with accessing the folder might be because windows frowns upon creating folders in the root directory and will try to get programs to put things in user folders. Look in control panel/folder options and uncheck hide system protected files and folders and see if you can see the folder then. It may be under users/username/appdata
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
Well, I tried to install MS VS on my laptop, it turned out that it will refuse to work..

I am resorting to gVim and cygwin.

I know linux type environments, but I cannot find the folder on my C drive that I created with this command: mkdir Labs. When I type in pwd, it says Administrator/home. I went there, but home folder is not there..

Help?

Thank you

If I recall, your C drive gets mounted to /cygdrive/c/. You should be able to navigate the C drive like normal.
 

ThatsABigOne

Diamond Member
Nov 8, 2010
4,422
23
81
If I recall, your C drive gets mounted to /cygdrive/c/. You should be able to navigate the C drive like normal.

Excellent.

I just found the folder. It is in cygwin/home/Administrator/

Thank you all for the suggestions!:)