Hello,

I've downloaded the latest version of lapackpp from sourceforge, but I can not get it to compile against the lapack and blas as provided by my suse 10.1 install. The error occurs when linking the objects together into the shared library as far as I can tell:


g++ -shared -nostdlib /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/4.1.0/crtbeginS.o .libs/dopla.o .libs/dtimmg.o .libs/eigslv.o .libs/genmd.o .libs/laprefs.o .libs/lasvd.o .libs/lautil.o .libs/linslv.o .libs/systime.o -Wl,--whole-archive ../matrix/src/.libs/liblamatrixpp.a ../blaspp/src/.libs/libblaspp.a -Wl,--no-whole-archive -llapack -lblas -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../.. /usr/lib64/libgfortran.so /usr/lib64/libstdc++.so -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-suse-linux/4.1.0/crtendS.o /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/crtn.o -Wl,-soname -Wl,liblapackpp.so.15 -o .libs/liblapackpp.so.15.1.0
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/liblapack.a(dgeev.i): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/liblapack.a: could not read symbols: Bad value

I've tried setting options on lapackpp compilation for -fPIC, but have had no luck when either enabling or disabling. Can anyone help me further?