installing Numerical Recipes on cygwin
#unpack source tarball into /usr/local/src/
#edit Makefile so that "CFLAGSANSI = -ansi -I../include" (we added the -ansi) this gets rid of a conflict between math.h and nr's fmin function
# bash$ ln -s /lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h /usr/include -nrutil.c wants this file, the target director I found by find /lib -name stddef.h
#go to directory with Makefile and execute make
#compile programs with: bash$ cc -ansi -o myprogram myprogram.c /usr/local/lib/librecipes_c.a
#edit Makefile so that "CFLAGSANSI = -ansi -I../include" (we added the -ansi) this gets rid of a conflict between math.h and nr's fmin function
# bash$ ln -s /lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h /usr/include -nrutil.c wants this file, the target director I found by find /lib -name stddef.h
#go to directory with Makefile and execute make
#compile programs with: bash$ cc -ansi -o myprogram myprogram.c /usr/local/lib/librecipes_c.a
Labels: aggravation, C, Cygwin, Numerical Recipes, Programming
0 Comments:
Post a Comment
<< Home