Hello, I cannot compile gsl with the MingW32 cross-compiler on Ubuntu, as I get the following errors:
libtool: link: gcc -g -O2 -o siman_tsp siman_tsp.o ./.libs/libgslsiman.a ../rng/.libs/libgslrng.a ../ieee-utils/.libs/libgslieeeutils.a ../err/.libs/libgslerr.a ../sys/.libs/libgslsys.a ../utils/.libs/libutils.a siman_tsp.o: In function `city_distance': /home/xp/big/pspp_root/gsl-1.12/siman/siman_tsp.c:79: undefined reference to `sincos' /home/xp/big/pspp_root/gsl-1.12/siman/siman_tsp.c:82: undefined reference to `sincos' /home/xp/big/pspp_root/gsl-1.12/siman/siman_tsp.c:82: undefined reference to `sincos' /home/xp/big/pspp_root/gsl-1.12/siman/siman_tsp.c:84: undefined reference to `sincos' /home/xp/big/pspp_root/gsl-1.12/siman/siman_tsp.c:98: undefined reference to `acos' ./.libs/libgslsiman.a(siman.o): In function `boltzmann': /home/xp/big/pspp_root/gsl-1.12/siman/siman.c:37: undefined reference to `exp' /home/xp/big/pspp_root/gsl-1.12/siman/siman.c:37: undefined reference to `exp'Perhaps gsl should use the /home/xp/big/pspp_root/gsl-1.12/siman/siman.c:37: undefined reference to `exp' ../ieee-utils/.libs/libgslieeeutils.a(fp.o): In function `gsl_ieee_set_mode': /home/xp/big/pspp_root/gsl-1.12/ieee-utils/fp-gnuc99.c:82: undefined reference to `fesetround' /home/xp/big/pspp_root/gsl-1.12/ieee-utils/fp-gnuc99.c:174: undefined reference to `feenableexcept' /home/xp/big/pspp_root/gsl-1.12/ieee-utils/fp-gnuc99.c:61: undefined reference to `fesetround' /home/xp/big/pspp_root/gsl-1.12/ieee-utils/fp-gnuc99.c:75: undefined reference to `fesetround' /home/xp/big/pspp_root/gsl-1.12/ieee-utils/fp-gnuc99.c:68: undefined reference to `fesetround' collect2: ld returned 1 exit status make[2]: *** [siman_tsp] Error 1 make[2]: Leaving directory `/mnt/big/xp/pspp_root/gsl-1.12/siman' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/big/xp/pspp_root/gsl-1.12' make: *** [all] Error 2 I had thought that gsl didn't support MingW, but according to http://ascendwiki.cheme.cmu.edu/Binary_installer_for_GSL-1.11_on_MinGW The following is sufficient to compile MingW. ./configure --enable-static=no --enable-shared=yes --prefix=/c/PROGRA~1/gsl-1.11 make mkdir ~/temp_gsl DESTDIR=~/temp_gsl make install (I also get similar errors with compiling gsl-1.11, so it isn't due to any difference between gsl-1.11 and 1.12) So is this a bug in GSL? -- John C. McCabe-Dansted PhD Student University of Western Australia _______________________________________________ Bug-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gsl
