Hi guys,

I ran into the same problem and solved it by changing one line in Andrew's
Makefile:

instead of:
gsl.so: vector.o multimin.o
    gcc -g -Wall -shared $^ -lgsl -o $@

use:
gsl.so: vector.o multimin.o
    gcc -g -Wall -shared $^  -o $@ -lgsl -lgslcblas -lm

Christophe


Thanks for the functions!
>
> I tried installing the multimin function. To get it to compile, I needed
> to change the Makefile to reflect my path and by adding the flags fPIC
> in response to the error: "/usr/bin/ld: vector.o: relocation R_X86_64_32
> against `a local symbol' can not be used when making a shared object;
> recompile with -fPIC"
>
> However, I get the following running test.R:
>
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>        unable to load shared library '/home/mmorales/Desktop
> /multimin/gsl.so':
>  /usr/lib64/libgsl.so.0: undefined symbol: cblas_ctrmv
>
> I'm running R-2.5.1 compiled for x86_64 with a custom built ATLAS.
>


-- 
A Master Carpenter has many tools and is expert with most of them. If you
only know how to use a hammer, every problem starts to look like a nail.
Stay away from that trap.
Richard B Johnson.
--

Christophe Pouzat
Laboratoire de Physiologie Cerebrale
CNRS UMR 8118
UFR biomedicale de l'Universite Paris V
45, rue des Saints Peres
75006 PARIS
France

tel: +33 (0)1 42 86 38 28
fax: +33 (0)1 42 86 38 30

	[[alternative HTML version deleted]]

