ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
does gcc compile files written in C++? I assume you run a text editor to put in the commands? Or is there a good program available for linux that i can use for this? Does anyone recommend python? I herd it's mostly good for scripts.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Yes, you can write a C++ program (using a text editor) and compile it with g++ (the GNU C++ compiler). One of, for example, the O'Reilly books on C++ programming in a Linux environment would be a good investment; see http://oreilly.com.
A look at the official Python web site, http://www.python.org, might give you some idea what you can do with Python.
On *nix most serious hard core types will use a vi (text editor) and make files
for C programming rather than a big heavy environment.
It's not for obstinate reasons, or being awkward or clever. it's because it's quicker and more efficient.
the downside is it takes time to learn.
Most will probably use something like gvim with syntax highlighting though.
python is not rubbish.
perl is another excellent scripting tool.
as is shell scripting.
it depends muchly on what you are trying to achieve.
choose the best tool for the job.
if you learn:
1. shell scripting
2. high level scripting (perl,python or similar)
3. C or maybe C++.
Thanks guys. im not too new with programming but ive never really done it in linux before. never found the need to untill now. my ultimate goal is to create a simple iso/data/video burning tool run through the console. ive always favored running things through the console plus i cant seem to find a burning tool i like so im going to make my own. itll take time but ill learn alot through the process.
ok i run g++ cout.cpp and it gives me a file a.out. i run it via the command "./a.out". i dont know the extension out. is there a way to compile it as a .sh or .bin?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.