Hey all, trying to get a program that I wrote (and runs perfectly...) in Slackware using GSL to run on Cygwin. Here's what happens:
Code:
gcc -lgsl -lgslcblas -lm -o SD_Plot SD_Plot.o
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2a6): undefined reference to `_gsl_monte_miser_ alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2ae): undefined reference to `_gsl_rng_env_setu p'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2b3): undefined reference to `_gsl_rng_default'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2c1): undefined reference to `_gsl_rng_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x4a7): undefined reference to `_gsl_monte_miser_ integrate'
collect2: ld returned 1 exit status
makefile:11: recipe for target `SD_Plot' failed
make: *** [SD_Plot] Error 1
Ok, so the library is wrong. I checked the libraries the only way I know:
Code:
$ gsl-config --libs
-L/usr/lib -lgsl -lgslcblas
$ gsl-config --libs-without-cblas
-L/usr/lib -lgsl
$ gsl-config --cflags
-I/usr/include
Ok. Then I try with those flags:
Code:
$ gcc -L/usr/lib -lgsl -lgslcblas -I/usr/include -lm -o SD_Plot SD_Plot.o
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2a6): undefined reference to `_gsl_monte_miser_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2ae): undefined reference to `_gsl_rng_env_setup'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2b3): undefined reference to `_gsl_rng_default'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2c1): undefined reference to `_gsl_rng_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x4a7): undefined reference to `_gsl_monte_miser_integrate'
collect2: ld returned 1 exit status
Any ideas? What am I missing here? Remember that the thing runs fine on Slackware with the default GSL install. Thanks!