online archive of my book's examples

Rouson, Damian rouson@sandia.gov
Mon Sep 12 03:47:00 GMT 2011


Gfortran Developers,

FYI, in case it is of interest for testing purposes, we have released an
open-source version of the code examples from my book in a form that can
be built in one line by running a CMake script. The archive is available
via the "Resources Available" button at http://www.cambridge.org/Rouson.
The included README.txt file explains how to build the examples.  The
CMake files are set up to recognize any of five compilers we've tested, to
disable the building of any examples that won't compile with the chosen
compiler, and to report which examples the compiler cannot build.

If you have Cmake or install it (http://www.cmake.org) and run the script
provided in "online_archive/buildScripts/gnu-compilers-cmake.sh", you'll
see a listing of the examples that don't build with gcc 4.6.1.  The
programs that don't build are Fortran examples in Chapters 4 and 5-11.  If
you'd like to try building everything, just edit the aforementioned script
to turn the ALL_EXAMPLES_ENABLED variable to "ON".  I think the issues
those examples identify are ones we have reported to you and the
corresponding bugs are listed in the archive's top-level README.txt file,
but if any of you tries to build archive and I can be of help in
understanding or isolating any issues you find, please let me know.

I feel reasonably confident the examples conform to the Fortran 2003
standard given the number of compilers we've tested and the fact that one
of the book's co-authors is on the standards committee.

Damian





More information about the Fortran mailing list