Solved

compiling a c++ program

Posted on 2002-05-20
5
269 Views
Last Modified: 2012-05-04
i have a bunch of c++ files (i.e .cpp, .h) i need to compile into a executable program, but don't have the software. i don't need the editing software for now,
just need to compile. is there a program i can download for free that will do this?
0
Comment
Question by:sagardeo
5 Comments
 
LVL 9

Accepted Solution

by:
jasonclarke earned 100 total points
ID: 7021922
It very much depends on what is exactly is in the code...

But gcc is a decent free C++ compiler... possibly the simplest way to get it is to install cygwin... see www.cygwin.com

However, whether it will compile your program or not cannot be judged without seeing the source code.

A more 'Windows' like free compiler is available from: http://www.borland.com/bcppbuilder/freecompiler/
0
 
LVL 2

Expert Comment

by:LoungeLizard
ID: 7023166
There are several free compilers available, here is a list:

http://www.thefreecountry.com/developercity/ccompilers.shtml

If your code is pure C++ (i.e. there are no OS dependent bits in it) I would really reccomend GCC - it's one of the best out there. I personally use the Bloodshed Dev-C++ package - it's basically a front-end for gcc. It is easy to use and you can simply add your .cpp and .h files to a project, hit compile and that's it! It will also generate a makefile for you if you manually want to compile + link your files with gcc. If your project is very complex you might want to tweak the makefile to get it to build.
0
 
LVL 22

Expert Comment

by:ambience
ID: 7025982
DJGPP is gcc port for windows,a good free compiler that has almost everything gcc has, and its for windows.

http://www.delorie.com/djgpp/
0
 
LVL 1

Expert Comment

by:thegroup
ID: 7027710
Try Borland C++ Free Compiler. It is traditionally fast, reliable and ANSI compatible.

look in http://www.borland.com/cbuilder/cppcomp/index.html
0
 

Expert Comment

by:TheLord
ID: 7027835
Here
http://linux20368.dn.net/protools/ 
is list of many free compilers ... not onli C++.
The best C++ compiler for sure is Borland
http://www.borland.com/cbuilder/cppcomp/index.html
enjoy
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question