[Rd] Compile error on a 'scratch' linux distro
Hin-Tak Leung
hin-tak.leung at cimr.cam.ac.uk
Fri Jun 22 12:40:17 CEST 2007
Don't do that - if you are using gcc 4.x, you should be using gfortran
4.x, rather than g77 3.x...
Dan Bolser wrote:
> Here are the details...
>
> uname -a
> Linux yellow 2.6.16.1.i686.1 #23 SMP Mon Aug 28 15:36:14 CEST 2006
> i686 GNU/Linux
>
> gcc --version
> gcc (GCC) 4.2.0
>
> g77 --version
> GNU Fortran (GCC) 3.4.4
<snipped>
> -L/arch/i686/usr/lib/gcc/i686-pc-linux-gnu/3.4.4
> -L/arch/i686/usr/lib/gcc -L/arch/i686/usr/lib -lg2c -lm -lgcc_s
> ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a
> -lreadline -ldl -lm -liconv
> complex.o: In function `z_logbase':
> /tmp/R-2.5.0/src/main/complex.c:450: undefined reference to `__divdc3'
> complex.o: In function `z_atan2':
> /tmp/R-2.5.0/src/main/complex.c:544: undefined reference to `__divdc3'
> complex.o: In function `complex_binary':
> /tmp/R-2.5.0/src/main/complex.c:257: undefined reference to `__divdc3'
> /tmp/R-2.5.0/src/main/complex.c:245: undefined reference to `__muldc3'
> collect2: ld returned 1 exit status
<snipped>
More information about the R-devel
mailing list