LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Free C++ Compiler? (https://www.linuxquestions.org/questions/programming-9/free-c-compiler-72504/)

BrutualTarget 07-14-2003 12:32 AM

Free C++ Compiler?
 
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.

vapor 07-14-2003 12:37 AM

www.download.com ...... trust me u can get them there

vapor 07-14-2003 12:41 AM

what OS?

vapor 07-14-2003 12:42 AM

http://download.com.com/3000-2069-10...ml?tag=lst-0-3

theres one for windows

vapor 07-14-2003 12:45 AM

http://download.com.com/3000-2029-17...l?tag=lst-0-20

theres a good linux one

BrutualTarget 07-14-2003 12:48 AM

There only seems to be Windows, Mac, and Mobile downloads at download.com -_-"

EDIT: Sorry, posted a little late without refreshing the page. Didn't realise there were more posts :) Thanks all

vapor 07-14-2003 12:51 AM

sure thing.......... thanks all?..... i never get any credit.... jk

shellcode 07-14-2003 01:27 AM

you are wrong: kdevelop is not a compiler.
if you want a compiler for C++ that is free then you already have one.
try typing g++ at a terminal

kdevelop is an IDE like anjuta....you do not need them but there are many free ones.

gcc is the C compiler.


gcc is what got linux to where it is today...and it is free and open-source as is 99% of linux software....


peace 07-14-2003 07:41 PM

Dev-C++ is the best free Windows compiler. If you are running linux, you most likely already have a C++ compiler. Look up to shellcode's post, g++ is the default one. Find info on it at: gcc.gnu.org

master 08-22-2004 08:12 AM

why is it when i type g++ at a terminal i get an error message
"master@linux:~> g++
g++: no input files
master@linux:~>
any help does this mean i dont have a compiler built in
thanks nige

Brane Ded 08-22-2004 09:16 AM

Quote:

Originally posted by master
why is it when i type g++ at a terminal i get an error message
"master@linux:~> g++
g++: no input files
master@linux:~>
any help does this mean i dont have a compiler built in
thanks nige

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"

For more info, see the g++ man page.

Smile005 08-22-2004 10:36 AM

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.

jinksys 08-22-2004 10:45 AM

Quote:

Originally posted by BrutualTarget
There only seems to be Windows, Mac, and Mobile downloads at download.com -_-"

EDIT: Sorry, posted a little late without refreshing the page. Didn't realise there were more posts :) Thanks all


really? they used to have linux downloads, not anymore i guess. Tucows.com still has linux stuff tho.

KneeLess 08-22-2004 04:04 PM

g++ is a great free C++ Compiler...try cygwin...


All times are GMT -5. The time now is 02:15 PM.