MinMax Spaz

MinMax-Games.com

The water cooler of outer space
  
It is currently Fri 24 Nov, 2017 9:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: C++ Compiler (For Windows)
PostPosted: Sat 24 Sep, 2011 9:41 pm 
Offline
Dart
User avatar

Joined: Wed 25 May, 2011 4:25 pm
Posts: 14
Location: USA
Recently, I've been dabbling into C++ Programming, preforming the simple tasks such as "Hello World", basic mathematical expressions, loopers, and primitive RNG generators.

However, the system I use at class is on a Mac computer using Terminal and Xcode (with g++?) to compile and code said C++ programs.

The OS I have at home is a Windows 7. I tried Visual Studio C++ Express, but its rather different and adds all this "fluff" that I currently do not need. In addition, it refuses to run a few necessary code lines that works perfectly on Xcode / Terminal (Namely #include <iomanip>). While debugging will "run" the program, I would prefer an executable file instead.

All I desire is the ability to write down C++ code (Which seems plausible with Notepad and saving with a .cpp extension), and a compiler that creates an executable. [provided I got those steps right]

Any help on this is greatly appreciated.

_________________
Sire's Random Signature Quote

“A delayed game is eventually good, but a rushed game is forever bad.”
-Shigeru Miyamoto


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Sun 25 Sep, 2011 3:29 am 
Offline
Shortbus
User avatar

Joined: Fri 09 Sep, 2011 12:35 am
Posts: 6
#include <iomanip> works in MS Visual Studio 2005.

Have you set your namespace or put the namespace explicitly?

Quote:
using namespace std;


If you want GCC (g++, ...) on Windows you could try the MinGW-64 or the old? MinGW

At least in the past, when you run a program in Visual Studio it simply compile it (do the .exe) and run it... (and you can normally manage the build configuration to generate a release (optimized) .exe)


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Sun 25 Sep, 2011 4:34 am 
Offline
Dart
User avatar

Joined: Wed 25 May, 2011 4:25 pm
Posts: 14
Location: USA
Regrettably, I do not have access to the files so I can show you what what I was doing, as they are either at the school's laptop or deleted in frustration.

However, with Visual Studio 2010 Express, it seems everything must be in a project in order to compile or debug within the program, but I only desire to compile one .cpp file into an executable.

* * *
"Edit":

After messing around with Visual Studio 2010 I've found a method that currently works (although is a bit of a workaround), that allows me to use Notepad to handwrite the code and the Visual Studio "Command Prompt" to compile, open, and create new files.

However, I can not confirm the [#include <iomanip>] because I don't have the original file. I'll post more information about it later when I get it.

_________________
Sire's Random Signature Quote

“A delayed game is eventually good, but a rushed game is forever bad.”
-Shigeru Miyamoto


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Sun 25 Sep, 2011 6:07 am 
Offline
Shortbus
User avatar

Joined: Fri 09 Sep, 2011 12:35 am
Posts: 6
If you do C++ you will most probably do some classes, and most of the time it's one class per file.

You will soon see that compiling multiple files by hand is a boring task, compile each file individually and then link them together into a .exe

On Linux, you use make files do to the equivalent of a project.


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Thu 27 Oct, 2011 6:14 pm 
Offline
Gopher
User avatar

Joined: Tue 24 May, 2011 11:59 am
Posts: 96
MSVC++ saves the executables in your Documents/Visual studio folder, under the project directories.

_________________
Nnnnnggggaaaahhhhh!!!!!! It is *dancing*!!!!


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Thu 01 Dec, 2011 6:24 pm 
Offline
Clockwork Personnel
User avatar

Joined: Sat 26 Feb, 2011 12:12 am
Posts: 584
Move on. It's time to just hang up C++ and welcome the new overlord C#

_________________
"It works cause I stand next to it radiating science and wonder."
Image


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Thu 08 Dec, 2011 1:16 am 
Offline
Shortbus

Joined: Mon 15 Aug, 2011 10:05 pm
Posts: 9
A great C++ compiler for windows would be GNU c++. http://gcc.gnu.org/

Careful touching anything Microsoft. They are driving the market to use C#. Some very basic functions are not even included in MSVC 2010 (I would know, I've contracted with them enough and play with their internal builds). No intellisense for unmanaged code in the latest c++. How stupid is that (or smart if they want to force you to use .net) and force you into their OS.

C++ is still very strong and there is plenty of code out there to maintain, great choice building your skills in one of the most popular languages (top 3, behind Java and C). This will also give you very strong skills in C should you need to perform refactors.

Good luck.

Will


Top
 Profile  
 
 Post subject: Re: C++ Compiler (For Windows)
PostPosted: Sat 31 Dec, 2011 3:05 am 
Offline
Shortbus

Joined: Sun 02 Oct, 2011 2:34 am
Posts: 5
Who the hell uses C (okay a few people/apps/companys do but theres just no point when you've got C++)

_________________
i5 480m Mobility Radeon 5650 (Overclocked Core:650 Mem:800) 6GB Ram
Windows 7 SP1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group