From murdoch.duncan at gmail.com  Fri Apr 12 13:13:22 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 12 Apr 2013 07:13:22 -0400
Subject: [Rd] La_svd compiler error
In-Reply-To: <1342FE910E6BB04082C687DADF6CB32910C8C5FF@BHEXMBX1.livad.liv.ac.uk>
References: <1342FE910E6BB04082C687DADF6CB32910C8C5FF@BHEXMBX1.livad.liv.ac.uk>
Message-ID: <5167EC52.6020402@gmail.com>

On 13-04-11 7:41 AM, Antczak, Philipp wrote:
> Dear All,
>
> I have been trying to compile a package for windows that we have written. Since R version 3.0.0 the package doesn't compile any more. (On Linux the package compiles without errors).
> The error specifically says:
>
> gcc -m32 -I"C:/PROGRA~1/R/R-30~1.0/include" -DNDEBUG     -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O3 -Wall  -std=gnu99 -mtune=core2 -c galgoDistance.c -o galgoDistance.o
> gcc -m32 -I"C:/PROGRA~1/R/R-30~1.0/include" -DNDEBUG     -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O3 -Wall  -std=gnu99 -mtune=core2 -c galgo_fitnesses.c -o galgo_fitnesses.o
> gcc -m32 -shared -s -static-libgcc -o galgo.dll tmp.def galgoDistance.o galgo_fitnesses.o -LC:/PROGRA~1/R/R-30~1.0/bin/i386 -lRlapack -LC:/PROGRA~1/R/R-30~1.0/bin/i386 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-30~1.0/bin/i386 -lR
> galgo_fitnesses.o:galgo_fitnesses.c:(.text+0xda1): undefined reference to `La_svd'
> collect2: ld returned 1 exit status
>
> specifically from the error I understand that error occurs in the link to La_svd which is defined in the first couple of lines in the code:
>
> #include <math.h>
> #include <R.h>
> #include <Rinternals.h>
> #include <Rmath.h>
>
> SEXP La_svd(SEXP jobu, SEXP jobv, SEXP x, SEXP s, SEXP u, SEXP v, SEXP method);
>

You reported this as a bug, and were told what to do to try to fix it. 
Did that work?

Duncan Murdoch



[Rd] La_svd compiler error
Duncan Murdoch