Solved

compiling a c++ program

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now