Step 4: Link your code to NOX

The Basics

To compile your code, your Makefile should look something like the following, assuming NOX was installed in /usr/local.

NOX_PREFIX = /usr/local
LDFLAGS = -L$(NOX_PREFIX)/lib 
LIBS = -lnox
CXXFLAGS = -I$(NOX_PREFIX)/include/

Compiling with LAPACK

NOX_PREFIX = /usr/local
LDFLAGS = -L$(NOX_PREFIX)/lib 
LIBS = -lnox -lnoxlapack -llapack -lblas 
CXXFLAGS = -I$(NOX_PREFIX)/include/

Compiling with Epetra

We assume that Epetra, Aztec, and Ifpack are installed in the same place as NOX.

NOX_PREFIX = /usr/local
LDFLAGS = -L$(NOX_PREFIX)/lib 
LIBS = -lnox -lnoxepetra -laztecoo -lifpack -lepetra  -llapack -lblas 
CXXFLAGS = -I$(NOX_PREFIX)/include/

If you have problems...

If you have problems configuring and compiling NOX, please report them using Bugzilla; see Reporting Bugs and Making Enhancement Requests for more information.
Generated on Thu Sep 18 12:43:29 2008 for NOX by doxygen 1.3.9.1