5

Which IDE for C++ should I use on Windows?

Is there an IDE with support for editing over SSH on a GNU/Linux server?

I have very big C++ project without docs and editing it with text editor very difficult =(

nucleartux
  • 1,381
  • 1
  • 14
  • 36
  • 3
    So do you want an IDE for Windows, or for Linux? Your first two questions are confusing. Is this Windows code or not? – Joe Feb 14 '10 at 17:06
  • 2
    Duplicate (thanks Xorlev): http://stackoverflow.com/questions/89275/best-c-ide-or-editor-for-windows – Manuel Feb 14 '10 at 17:16
  • That link is with regard to editing and running on windows. This is not a duplicate if he is editing on windows and running on a Linux server. But he really should clarify. – Justin Ethier Feb 14 '10 at 17:23

10 Answers10

14

On Windows, it's hard to beat the freely available Visual Studio Express.

A viable alternative would be the Qt Creator, which is lightweight and comes with the completely awesome Qt library.

Shaun
  • 3,928
  • 22
  • 21
7

Eclipse is very powerful editor for both C++ and many other languages. It sounds like you're looking to develop from a Windows system for Linux?

WinSCP will make it possible for you edit files via SSH.

If your project is being stored in CVS, Subversion, Git, Mercurial, et al--Eclipse has plugins to integrate with these as well...

Damon
  • 687
  • 3
  • 17
  • 1
    My standard eclipse Galileo distribution has support for remote systems, including remote shells / ssh terminials etc. – crowne Feb 14 '10 at 19:22
  • Unless you create s/w with a GUI, then I have to agree. Eclipse is a great editor, use dat many companies, with great features and lots of plugins (btw, there isn't a package for kosmic, if you are using Ubuntu) – Mawg says reinstate Monica Feb 15 '10 at 01:18
  • See also CodeBlocks http://www.codeblocks.org/ NetBeans http://netbeans.org/features/cpp/ et al and don't forget The Free Country http://www.thefreecountry.com/compilers/cpp.shtml – Mawg says reinstate Monica Feb 15 '10 at 01:58
5

Have a look at Netbeans 6.8, specifically the Remote Development section:

Use the Development Host Manager in the C/C++ Options windows to define remote hosts. You can then use development tools on those hosts to build and run projects from your client system. Benefit from faster synchronization with the remote host.

I have been very happy using Netbeans remote debugging for a PHP project. Just configure it and on run it will to automatically ssh files to the remote server.

Alternatively, Visual Studio offers arguably the best C++ editor for windows C++ development, and you can script it to upload the files to a linux server.

Finally, you may want to look into Eclipse CDT as well.

Justin Ethier
  • 131,333
  • 52
  • 229
  • 284
5

On Windows I prefer:

Visual Studio + WinSCP

road242
  • 2,492
  • 22
  • 30
1

devc++ seems interesting. It's free and makes use of MinGW as a POSIX layer. It's great if you're interested in doing cross-platform development on Windows and Linux/UNIX.

Tom
  • 18,685
  • 15
  • 71
  • 81
  • Bug ridden and no longer being developed. If you use it, you should immediately switch to Code::Blocks. –  Feb 15 '10 at 21:01
  • Thanks for the tip! (It's been a long while since I've had to develop C++ on Windows.) – Tom Feb 16 '10 at 16:07
1

If your Linux box has x libraries you can run eclipse cdt on it and use a cygwin x server to display it on Windows. I have been using this setup since the usb ports stopped working on my Solaris box. The results are very good. Eclipse runs on my Solaris box but behaves like a Windows app on my windows box, the code builds and runs on Solaris, copy and paste works most of the time too.

Run x server on windows. Use putty to ssh to your Linux box with x forwarding. Start eclipse and it displays on windows. Use nohup to keep eclipse alive if you close putty.

iain
  • 10,798
  • 3
  • 37
  • 41
1

CodeBlocks.

It comes with MinGW.

jonescb
  • 22,013
  • 7
  • 46
  • 42
1

For editing you can use basically any editor that has FTP/SFTP support (I've used jEdit: free, a great tool with loads of plugins; played with SlickEdit: really cool but pretty expensive) or map the target drive in Windows using Samba or anything else of that nature. Then use Putty's plink for compiling/building.

Eugen Constantin Dinca
  • 8,994
  • 2
  • 34
  • 51
0

For ssh-support, I'd say putty and emacs-on-server is an option. :)

Macke
  • 24,812
  • 7
  • 82
  • 118
0

For a programming project stored on a linux server, I prefer Git. I do not know if more people are involved, but using git can make programming in a group a lot easier.

And as IDE I prefer Visual Studio. The RC for 2010 is now available at MSDN. Visual Studio 2010. Maybe you should give it a try.

JordyOnrust
  • 652
  • 1
  • 6
  • 16