Solved

compiling a c++ program

Posted on 2002-05-20
5
275 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

821 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