Sunday, July 12, 2009

Can I write C++ (console) on windows, run on linux without a big hassle?

I write console programs that run on a linux cluster. I have to work on my windows laptop a lot, so I write using MS IDE then SCP the stuff to the cluster, compile and run it. Is there an easier way? It would be great to hit a button in an IDE and have it automatically update the files on the cluster, compile it and run it. Any ideas?

Can I write C++ (console) on windows, run on linux without a big hassle?
Use cygwin to install a linux shell on your windows machine or use dev c. Dev c usually goes into linux pretty well.





RJ
Reply:You have to port the application. Not recommended.
Reply:That IDE would be great for me as well, though I haven't seen one around.





What I've been doing for the past few years is, programming on Windows ( for intellisense reasons...love that stuff ), and I have that stuff checked into my cvs server. Whenever I get to the Linux machines, I compile the newest version found on cvs server and run it.





This is, unfortunately, the best way I've found to do it. ( I'll be keeping an eye on this topic in case someone has a better alternative )


No comments:

Post a Comment