I'm trying to use gsl under Cygwin. I have done it two ways: 1) Downloading v1.6 from the gsl site, compiling and installing in /usr/local
2) Updating my installation to include version 1.7 of gsl from a mirror site, installing in /usr. My first test was to copy gsl-histogram.c to my home directory, and try to run it from there. Gcc could not find the gsl entry points in either library (see attached). Doing ar -t on either library (libgsl.a) did not show histogram or linalg entries (ar -t libgsl.a | grep hist, ar -t libgsl.a | grep linalg). However, the histogram and linalg include files are in the ../include directory. I am running Cygwin under WinXP Pro SP2. Any suggestions? Ken McFarlane Hampton University
Output from gcc, using version 1.6 source downloaded and installed, with 'All 1 tests passed'i. The files gsl-histogram.c and config.h were copied to a user directory. gcc -I/usr/local/include -I. -L/usr/local/lib/ -lgsl gsl-histogram.c /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccY0NoaN.o:gsl-histogram.c:(.text+0xd1): undefined reference to `_gsl_histogram_alloc' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccY0NoaN.o:gsl-histogram.c:(.text+0xed): undefined reference to `_gsl_histogram_set_ranges_uniform' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccY0NoaN.o:gsl-histogram.c:(.text+0x125): undefined reference to `_gsl_histogram_increment' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccY0NoaN.o:gsl-histogram.c:(.text+0x150): undefined reference to `_gsl_histogram_fprintf' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccY0NoaN.o:gsl-histogram.c:(.text+0x15b): undefined reference to `_gsl_histogram_free' collect2: ld returned 1 exit status make: *** [gsl-histogram] Error 1 Output from gcc, using gsl version 1.7 binary library downloaded from Cygwin via setup. gcc -I/usr/include -I. -L/usr/lib/ -lgsl gsl-histogram.c /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccQ5XKld.o:gsl-histogram.c:(.text+0xd1): undefined reference to `_gsl_histogram_alloc' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccQ5XKld.o:gsl-histogram.c:(.text+0xed): undefined reference to `_gsl_histogram_set_ranges_uniform' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccQ5XKld.o:gsl-histogram.c:(.text+0x125): undefined reference to `_gsl_histogram_increment' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccQ5XKld.o:gsl-histogram.c:(.text+0x150): undefined reference to `_gsl_histogram_fprintf' /cygdrive/c/DOCUME~1/KMCFAR~1/LOCALS~1/Temp/ccQ5XKld.o:gsl-histogram.c:(.text+0x15b): undefined reference to `_gsl_histogram_free' collect2: ld returned 1 exit status make: *** [gsl-histogram] Error 1 Did ar -t on both /usr/local/lib/libgsl.a and /usr/lib/libgsl.a. In neither case were the _gsl_histogram entry points found. Not the gsl_linalg entries either. Where can I find the histogram and linalg routines?
_______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
