next up previous contents index
Next: Copy constructor and assignment Up: Using Sophya Previous: User makefiles   Contents   Index


the runcxx program

runcxx is a simple program which can be used to compile, link and run simple C++ programs. It handles the creation of a complete program file, containing the basic set C++ include files, the necessary include files for SOPHYA SysTools, TArray, HiStats and NTools modules, and the main program with exception handling. Other Sophya modules can be included using the -import flag. Use of additional include files can be specified using the -inc flag.

csh> runcxx -h
SOPHYA Version  1.1 Revision 0 (V_Fev2001) -- Feb 28 2001 11:19:17 cxx
 runcxx : compiling and running of a piece of C++ code
   Usage: runcxx [-compopt CompileOptions] [-linkopt LinkOptions]
                 [-tmpdir TmpDirectory] [-f C++CodeFileName]
                 [-inc includefile] [-inc includefile ...]
                 [-import modulename] [-import modulename ...]
                 [-uarg UserArg1 UserArg2 ...]
   if no file name is specified, read from standard input
   modulenames: SkyMap, Samba, SkyT, FitsIOServer, LinAlg, IFFTW
Most examples in this manual can be tested using runcxx. The example below shows how to compile, link and run a sample code.

//  File example.icc
Matrix a(3,3);
a = IdentityMatrix(1.);
cout << a ; 
// Executing this sample code
csh> runcxx -f example.icc



Reza Ansari
2001-03-07