![]() |
Prev | Next | Install |
tar -xvzf f2cad.tar.gz
to decompress and extract the download file into the distribution directory
f2cad-
yy-
mm-
dd
The values
yy-
mm-
dd identifies the version of f2cad.
doc
sub-directory of the distribution directory
contains the documentation for f2cad.
The files doc/doc.xml
is the top of the documentation tree
(your browser must support XHTML plus MathML to read this documentation).
./configure \
F2C_DIR=
f2cDir \
[ prefix=
prefix ] \
[ ADOLC_DIR=
adolc_dir ] \
[ CPPAD_DIR=
cppad_dir ] \
[ FADBAD_DIR=
fadbad_dir ] \
[ CPP_ERROR_WARN=
CppErrorsAndWarnings ]
where the entries between the brackets [
and ]
are optional,
the brackets are not included,
and the entires in italic are replaced values that you choose.
f2cDir/include/f2c.h
f2cDir/lib/libf2c.a
f2cDir/bin/f2c
must be the include file, library file, and executable for f2c.
$HOME
;
i.e., by default the f2cad include files
will install in
$HOME/include/f2cad
and the f2cad libraries are
$HOME/lib/libf2c_adolc.a
$HOME/lib/libf2c_cppad.a
$HOME/lib/libf2c_fadbad.a
If you want to install elsewhere, you will have to use this option.
For example,
if you have permission to write into the directories
/usr/local/include
and /usr/local/lib
,
./configure --prefix=/usr/local
will set up for installing the f2cad include files in the directory
/usr/local/include/f2cad
and the f2cad libraries will be
/usr/local/lib/libf2c_adolc.a
/usr/local/lib/libf2c_cppad.a
/usr/local/lib/libf2c_fadbad.a
This is the standard location for such files on many systems.
If prefix is not a standard location for your system,
you will need the compiler switches
-I
prefix/include -L
prefix/lib
on the command line when you compile and link your programs with
the f2cad libraries.
adolc_dir/include/adolc/adouble.h
is a valid way to reference the include file adouble.h
.
In this case, the lib/adolc/libf2c_adolc.a
library and
the corresponding example and test program example/adolc/run
will be built.
cppad_dir/include/cppad/cppad.hpp
is a valid way to reference the include file cppad.hpp
.
In this case, the lib/cppad/libf2c_cppad.a
library and
the corresponding example and test program example/cppad/run
will be built.
fadbad_dir/FADBAD++/fadiff.h
is a valid reference to fadiff.h
.
In this case, the lib/fadbad/libf2c_fadbad.a
library and
the corresponding example and test program example/fadbad/run
will be built.
CPP_ERROR_AND_WARN="-Wall -ansi"
would specify that error and warning flags -Wall
and -ansi
should be included
in all the C++ compile commands.
The error and warning flags chosen must be valid options
for the C++ compiler.
The default value for CppErrorsAndWarnings is the
empty string.
make
This will build the libraries
lib/adolc/libf2c_adolc.a
,
lib/cppad/libf2c_cppad.a
, and
lib/fadbad/libf2c_fadbad.a
.
make test
This will compile and run the tests.
The results of the tests are stored in the file test.log
.
make install
This will install f2cad in the location specified by
prefix
.