Page 1 of 1

C++ Compiling

PostPosted: Tue Mar 27, 2007 1:45 pm
by Dante
Ok, so I've been trying to learn C++ lately, and while I'm making proggress by only reading, I am greatly hindered by absolutely zero practice. Unfortunately, it seems like finding a simple compiler for C++ or installing said compiler is far more difficult than acquiring a book and reading up on it. Does anyone know a simple .exe free compiler from the web that I can use which doesn't try to do everything for me, but simply let's me type in the C++ from my text and see the output come out?

Thank you,
Pascal

PostPosted: Tue Mar 27, 2007 2:26 pm
by Kaligraphic
The easy suggestion would be to just download a win32 version of gcc. Alternately, you might try Microsoft's Visual C++ Express.

gcc is a regular compiler, which is exactly what you seem to be looking for.

PostPosted: Tue Mar 27, 2007 5:17 pm
by QtheQreater
Here's the site for what I use...works for me, but it may do more than you wanted it to...

For some reason, I seem to remember there being something you need to install first, though...whatever it is, it should be on the site.

http://www.bloodshed.net/devcpp.html

I get the feeling I've just made it more complicated. :forehead:

PostPosted: Tue Mar 27, 2007 8:12 pm
by Icarus
I'd second the recommendation of gcc. All it does it take your code, and compile it, and give you the program. Just a caution, it names the program "a.exe" unless you use the -o option.

Ex: g++ -o program_name [code_file]

PostPosted: Tue Mar 27, 2007 10:58 pm
by Dante
http://gcc.gnu.org/install/configure.html

: Goes over to GCC... is trampled the installation procedure. Why can't they make these programs any simpler to install? I'd have to basically understand everything about my computer before I could even attempt such a thing. Or is all that stuff erroneous and there is some simple thing I need to do? Thank you so much for the suggests though by the way, I'm just not sure how this is all supposed to work. :

Pascal

PostPosted: Tue Mar 27, 2007 11:54 pm
by Warrior4Christ
I also use gcc/g++, but with the Cygwin distribution.

The easiest way to get GCC is as a precompiled binary. Am I correct in saying that the way to get it precompiled for Windows is with DJGPP or Cygwin or MinGW? (http://gcc.gnu.org/install/binaries.html)

If so, the quickest way to get it would be with MSYS (a distribution of the MinGW files).
http://www.mingw.org/download.shtml

So 1. Download MSYS-1.0.10.exe file.
2. Download gcc-core-3.4.2-20040916-1.tar.gz and gcc-g++-3.4.2-20040916-1.tar.gz and extract them somehow.
3. Read the install notes of how/where to install it. Or ask someone. Or something.

As you can see, GCC isn't really trivial to install.

PostPosted: Wed Mar 28, 2007 12:07 am
by Slater
Dev C++ is a winrar of C++, IMO. I started writing C++ in it, and I still use it today. It crashes sometimes, but... it lets you save your work before restarting! You won't find many programs that are that nice to you

PostPosted: Wed Mar 28, 2007 8:43 pm
by Icarus
*clicks link* ... That looks like the Linux version.

If you're still willing to try GCC, I'd say get it from cygwin. All you have to do is set the path to include the cygwin tools... It's really not that hard. Honestly. :angel:

PostPosted: Wed Mar 28, 2007 8:49 pm
by JediSonic
Yeah, I use the bloodshed one too :)

PostPosted: Wed Mar 28, 2007 9:10 pm
by Warrior4Christ
Icarus wrote:*clicks link* ... That looks like the Linux version.

If you're still willing to try GCC, I'd say get it from cygwin. All you have to do is set the path to include the cygwin tools... It's really not that hard. Honestly. :angel:

Apart from the large download...

My suggestion is to try the MSYS option if you want to give GCC a go. Go for cygwin for long term use of GCC or if you want to get into UNIX programming.

PostPosted: Thu Mar 29, 2007 6:34 am
by samuraidragon
JediSonic wrote:Yeah, I use the bloodshed one too :)
Is blood what they require you shed for C++ to work?