Lectures: Disque 919, MWF 10:00 - 10:50 am Office: Disque 610 Phone: (215) 895-2723 Fax: (215) 895-1549 e-mail: steve@physics.drexel.edu
Here is a simple Makefile to assist in building standalone programs using Numerical Recipes routines. The header files in /usr/local/include should be found automatically, and the library libnr.a (found in /usr/local/recipes) is appropriate for C programs written using double data, as discussed in class.
gcc -o gaussj gaussj_main.c nrutil.c -lm
and experiment! Here's
an even simpler, bare-bones version.
cc -L/usr/local/recipes gaussj_main.c -lnr -lm -o gaussj_main
Alternatively, just install the above Makefile in your
working directory and type
make gaussj_main