Skip to content

Installing the C code

Erin Sheldon edited this page Nov 8, 2015 · 1 revision

Installing the C library

Requirements

Installation

in the usual place
    make install

in a different prefix
    make install prefix=/some/path

Linking to the library

Include "meds.h" and use the following to link against the library. Make sure to get the order correct

CC  ... -lmeds -lcfitsio -lm ...

testing

You can test your build of the C libary using

./src/test $medsfile

Where $medsfile is the name of a MEDS fits file.