c++ code may run or may not run depending on the environment.
It depends on the version of gcc, OS, Intel Fortran.
For some version of gcc in RedHat 7.3 and Intel Fortran v.6,
C++ User Interface went well. 
In the RedHat 9.0, compilation fails at the moment.
Stuff in Test/ include varous tests I tried during making up 
the interface.
**********
You have to change the IFC compiler part in Makefile.
Also you have to make the appropiate  ifclib file.
(not necessary for only intel fortran).
For this, you may make a simple fortran program, and
compile it with -v option. Then, you will see what
libraries are needed to link Fortran programs and
you may put them in ifclib.
*********



If you change Z.....h in cosmos, you must also change the
corresponding Z...h in include.

 -------------



c++ -c ../cmain.cc -I../../include
c++ -c  chookHybAS.cc -I../../include
c++ -c ../ctemplCeren.cc -I../../include
c++ -c chook.cc -I../../include

 /lib/cpp -C -P -traditional -I$COSMOSINC ../cmymain.f > /tmp/cmymain.f
ifc -c  /tmp/cmymain.f

c++ cmain.o cmymain.o chook.o chookHybAS.o ctemplCeren.o -L$COSMOSTOP/lib/PCLinuxIFC -lcosmos `cat ifclib `

IFC:
 append _.
 for lib, cc ...  ` cat ifclib `

 cat ifclib must come last


-----------
	
icrsrv: 
In C code,
 use  the same capital/small letter as in fortran.
	but apend _ in each external name.

use library 
-L/usr/lib32/mips4/r10000 -L/usr/lib32/mips4 -L/usr/lib32 -dont_warn_unused -lfortran -lffio -lftn -lm


--------------
OS X absoft fortran
In C code;
use capital letter for external name without appending _

use library;
  -L/usr/local/Absoft/lib/ -lfio -lf77math

-----------------

