home *** CD-ROM | disk | FTP | other *** search
- D.1 NCSA HDF Vset
-
-
- Source Files D.1
-
-
- National Center for Supercomputing Applications
-
-
- November 1990
-
-
-
-
-
- November 1990
-
-
-
-
-
- Appendix D Source Files
-
-
-
- Overview
-
- This appendix lists the source files needed to create the HDF Vset
- library.
-
-
- Source Files
-
- In addition to your existing HDF library, libdf.a (release 3.0 or
- later), as well as existing include-files df.h and dfi.h, you need
- the following source files for the HDF Vset:
-
- vg.c
- vsetf.c
- vrw.c
- vio.c
- vconv.c
- vparse.c
- vsetf.c
- vgp.c
- vg.h
-
- Use the file makefile (in the same directory) to create the HDF
- Vset library, libvg.a. Remember to set the machine type in the
- makefile (e.g., "MACHINE=SUN").
-
- You may also simply compile the C source files and then create the
- library from the object files. For example, on the Sun workstation
- running UNIX, create the library as outlined below.
-
- 1. To create the object files, compile the C source files by entering:
-
- cc -c vg.c vsetf.c vrw.c vio.c vconv.c vparse.c
- vsetf.c vgp.c -D<machine>
-
- 2. To create the library from the object files, enter:
-
- ar -r libvg.a vg.o vsetf.o vrw.o vio.o vconv.o
- vparse.o vsetf.o vgp.o
- ranlib libvg.a
-
- Note that this library only contains HDF Vset routines.
-
- 3. To create an executable, compile and link your application
- source with the vertex-set library (libvg.a) and the basic HDF
- library (libdf.a). Enter:
-
- cc myprog.c libvg.a libdf.a -o myprog
-
- For example, if you name your program plane, you would enter:
-
- cc plane.c libvg.a libdf.a -o plane
-
-
-