C++ Compiling

Homework giving you a headache? Math gives you a migraine? Can't quite figure out how to do something in photoshop? Never fear, the other members of CAA share their expertise in this forum.

C++ Compiling

Postby Dante » Tue Mar 27, 2007 1:45 pm

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
FKA Pascal
User avatar
Dante
 
Posts: 1323
Joined: Thu Mar 04, 2004 8:24 pm
Location: Where-ever it is, it sure is hot!

Postby Kaligraphic » Tue Mar 27, 2007 2:26 pm

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.
The cake used to be a lie like you, but then it took a portal to the deception core.
User avatar
Kaligraphic
 
Posts: 2002
Joined: Wed Jul 21, 2004 12:00 pm
Location: The catbox of DOOM!

Postby QtheQreater » Tue Mar 27, 2007 5:17 pm

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:
The sometime President of the Goof Off!

Image Image
User avatar
QtheQreater
 
Posts: 727
Joined: Wed Jun 21, 2006 10:34 pm
Location: Fighting bears.

Postby Icarus » Tue Mar 27, 2007 8:12 pm

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]
The Forsworn War of 34

††
User avatar
Icarus
 
Posts: 1477
Joined: Sun Nov 09, 2003 5:00 am
Location: 34

Postby Dante » Tue Mar 27, 2007 10:58 pm

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
FKA Pascal
User avatar
Dante
 
Posts: 1323
Joined: Thu Mar 04, 2004 8:24 pm
Location: Where-ever it is, it sure is hot!

Postby Warrior4Christ » Tue Mar 27, 2007 11:54 pm

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.
Everywhere like such as, and MOES.

"Expect great things from God; attempt great things for God." - William Carey
User avatar
Warrior4Christ
 
Posts: 2045
Joined: Sat Aug 20, 2005 8:10 pm
Location: Carefully place an additional prawn on the barbecue

Postby Slater » Wed Mar 28, 2007 12:07 am

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
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Icarus » Wed Mar 28, 2007 8:43 pm

*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:
The Forsworn War of 34

††
User avatar
Icarus
 
Posts: 1477
Joined: Sun Nov 09, 2003 5:00 am
Location: 34

Postby JediSonic » Wed Mar 28, 2007 8:49 pm

Yeah, I use the bloodshed one too :)
User avatar
JediSonic
 
Posts: 1359
Joined: Thu Oct 16, 2003 12:33 pm
Location: The Bible Belt :D

Postby Warrior4Christ » Wed Mar 28, 2007 9:10 pm

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.
Everywhere like such as, and MOES.

"Expect great things from God; attempt great things for God." - William Carey
User avatar
Warrior4Christ
 
Posts: 2045
Joined: Sat Aug 20, 2005 8:10 pm
Location: Carefully place an additional prawn on the barbecue

Postby samuraidragon » Thu Mar 29, 2007 6:34 am

JediSonic wrote:Yeah, I use the bloodshed one too :)
Is blood what they require you shed for C++ to work?
-マックスウェル

"My my, the cruelest lies are often told without a word; my my, the kindest truths are often spoken, never heard." Ben Folds, The Last Polka

No one has greater love than this, to lay down one's life for one's friend - John 15:13
User avatar
samuraidragon
 
Posts: 498
Joined: Sun Apr 18, 2004 6:47 pm
Location: Wherever they send me.


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 98 guests