Tuesday, July 28, 2009

Using c++ in Linux?

Please tell me how we can use c++ language in Linux operating system.

Using c++ in Linux?
You will have to use a Windows emulator, like WINE. And then there will likely still be problems; frankly this is the kind of question that if you have to ask how to do it, you're going to have lots of trouble doing it.
Reply:you can write your program within any editor such as (kwrite, gedit, vi, emacs, ... ) then save it with a whateveryourname.cpp namethen from any terminal (knosole, xterm, etc) type





g++ filename.cpp -o programname





to execute the program type





./programname





you can choose the names to your program.





Another alternative is using an IDE such as KDevelop, Anjuta, Eclips


No comments:

Post a Comment