This is a library written in C, for solving the ideal-free distribution for a generalised functional response with exponential interference function. This library is called from the R script performing model fits using Bayesian MCMC methods.

To compile shared library, install the GNU scientific library:
https://www.gnu.org/software/gsl/

Assuming gsl is installed in /opt/local, the IFD-R shared library can be built as follows:
gcc -c IFD-R.c -I/opt/local/include
gcc -shared -o IFD-R.so IFD-R.o -lgsl -lgslcblas -L/opt/local/lib
