G++ (C++)

The GNU C++ compiler is called g++. We also have the Sun C++ compiler CC. To compile and link a program called runge.cc with all the default options, and including routines from the math library (the usual case), use the command
  g++ runge.cc -o runge -lm
If there are coding errors, you will see a list of error messages. The source line number is indicated.

To compile and link with the LAPACK and math libraries use

  g++ runge.c -o runge -lm -llapack
Be sure to use the lapack.h header file supplied in this course. (Do this by putting the statement #include "lapack.h" at the top of your source program and copy the file  p6720/include/lapack.h into the directory where you keep the source file. This header file is incomplete and will be added to during the term, so watch for announcements.)