These are my instructions for compiling newmat10 under Borland C++ Builder 5 using the IDE for producing a program to run in console mode (i.e. from an MSDOS window). The same instructions should work for my other C++ programs. I do not believe they will work without modification with earlier versions of Borland Builder (look at the notes in the newmat 10 documentation).
Essentially the same instructions work in Builder 6, but see the bugs and notes page.
You can alternatively compile your programs using a make file instead of the IDE. Again, see the newmat 10 documentation. (Don't mix object files and library generated by a make file and the IDE).
Move all your source files to the same directory
Select menu file item new;
in window new items select tab new (in BCB6 first select line other...)
select icon console wizard
select C++; unclick use VCL and multi threaded;
if there is already a .cpp file containing the main program - e.g. example.cpp click specify program source and find the file name using the ... button;
If you didn't specify a file name in the previous step a window unit1.cpp should have been created. In this case
Select menu file item save as
in the window save ... as enter the name you want to use as your main program. You will also need to set the correct directory.
If you accidentally created a unit1.cpp window delete it with the following step
Select menu project item remove from project
select unit1.cpp from the list and click OK
Select menu project item add to project
in window add to project
find the directory containing the source files and highlight all the .cpp files required by your project
Select menu project item options
in window project options select compiler; click release button
select option none under precompiled headers
Select menu file item save project as
select save as type C++ Builder project (*.bpr)
type your project name and bpr suffix (e.g. example.bpr)
Select menu project item make example (where example is the name of your project) [or build example if you want to recompile everything, for example after changing an option]
Run the project from an MSDOS window