ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Call me cheap, but I want a free compiler. I'm interested in learning C++ (read: HUGE NEWBIE). I tried setting up KDevelop, as I understand that is a compiler, but I can't seem to start a "new" file, and my attempts at getting help on the subject have been in vain. So, I'm hoping to find a Linux-friendly C++ compiler that costs less than $0.01. Thanks.
Originally posted by master why is it when i type g++ at a terminal i get an error message
g++: no input files
any help does this mean i dont have a compiler built in
Because g++ is a command line compiler, and it needs something to compile first. The fact that it didn't say "g++: command not found" is a good indication that it's there and working. To compile something with it, you either create a makefile, or type the file(s) to compile by hand.
For example: "g++ mysource.cc -o myprogram"
I also second Dev-C++ for on Windows, it uses mingw which is a Windows port of GCC.
Dev-C++ was going to have a port using Kylix as it's written in Delphi for Windows. However they say that Kylix wasn't as good as they hoped so their not doing it now, which is a shame because I really like it. It's a nice simple IDE that doesn't automatically make dozens of files that a newbie has no idea of their purpose. Plus I find the big IDEs too intimidating.
What I do is use a standard text editor and write my own makefile (at least for small projects ) which I think is a good way to learn how things are compiled.