New to Metis, unable to compile using metis.h

All,
I have compiled metis (5.0.2) and installed with no errors.
I have metis.h in $HOME/metis/include
I downloaded http://people.sc.fsu.edu/~jburkardt/c_src/graphchk/graphchk.c to do a simple test.

When I try to compile it, however, I get:

graphchk.c: In function 'main':
graphchk.c:27: error: 'GraphType' undeclared (first use in this function)
graphchk.c:27: error: (Each undeclared identifier is reported only once
graphchk.c:27: error: for each function it appears in.)
graphchk.c:27: error: expected ';' before 'graph'
graphchk.c:38: error: 'graph' undeclared (first use in this function)
graphchk.c:45: error: 'METISTITLE' undeclared (first use in this function)
graphchk.c:58: error: 'LTERM' undeclared (first use in this function)

When I look at the produced metis.h, there is no reference to GraphType anywhere.
Obviously, I am missing something. Can anyone help?

Brian Andrus

RE: The various programs in Metis

The various programs in Metis are very tightly integrated with the build environment that Metis uses so they cannot just simply compiled in a stand-alone mode.