On Sat, Apr 12, 2008 at 11:42 PM, Andreas Klöckner <lists@informa.tiker.net> wrote:
On Samstag 12 April 2008, e r wrote:
> g++ -L/usr/local/atlas/lib -o"testing_numeric_bindings_chol"  ./main.o
>  -latlas -lcblas -lf77blas -llapack -lptcblas -lptf77blas

Careful here: Order of the -l switches matters. The more "basic" libraries
need to be at the end. You likely don't want the -lpt* stuff, at least for
now.

Use this order: -llapack -lf77blas (optional: -lcblas) -latlas.

Andreas
_______________________________________________
ublas mailing list
ublas@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas

Thank you.

Still some errors :

a) Without cblas:

make -k all
Building target: testing_numeric_bindings_chol
Invoking: GCC C++ Linker
g++ -L/usr/local/atlas/lib -o"testing_numeric_bindings_chol"  ./main.o   -llapack -lf77blas -latlas
/usr/local/atlas/lib/liblapack.a(ATL_spotrfL.o): In function `ATL_spotrfL':
ATL_potrfL.c:(.text+0x155): undefined reference to `cblas_strsm'
ATL_potrfL.c:(.text+0x18f): undefined reference to `cblas_ssyrk'
/usr/local/atlas/lib/liblapack.a(ATL_spotrfU.o): In function `ATL_spotrfU':
ATL_potrfU.c:(.text+0x157): undefined reference to `cblas_strsm'
ATL_potrfU.c:(.text+0x191): undefined reference to `cblas_ssyrk'
/usr/local/atlas/lib/liblapack.a(ATL_spotrs.o): In function `ATL_spotrs':
ATL_potrs.c:(.text+0xb2): undefined reference to `cblas_strsm'
ATL_potrs.c:(.text+0xf6): undefined reference to `cblas_strsm'
ATL_potrs.c:(.text+0x14a): undefined reference to `cblas_strsm'
ATL_potrs.c:(.text+0x190): undefined reference to `cblas_strsm'
ATL_potrs.c:(.text+0x1d4): undefined reference to `cblas_strsm'
/usr/local/atlas/lib/liblapack.a(ATL_spotrs.o):ATL_potrs.c:(.text+0x218): more undefined references to `cblas_strsm' follow
/usr/local/atlas/lib/liblapack.a(ATL_cpotrfL.o): In function `ATL_cpotrfL':
ATL_potrfL.c:(.text+0xea): undefined reference to `cblas_ctrsm'
ATL_potrfL.c:(.text+0x124): undefined reference to `cblas_cherk'
/usr/local/atlas/lib/liblapack.a(ATL_cpotrfRL.o): In function `ATL_cpotrfRL':
ATL_potrfRL.c:(.text+0xe6): undefined reference to `cblas_ctrsm'
ATL_potrfRL.c:(.text+0x120): undefined reference to `cblas_cherk'
/usr/local/atlas/lib/liblapack.a(ATL_cpotrfRU.o): In function `ATL_cpotrfRU':
ATL_potrfRU.c:(.text+0xe7): undefined reference to `cblas_ctrsm'
ATL_potrfRU.c:(.text+0x122): undefined reference to `cblas_cherk'
/usr/local/atlas/lib/liblapack.a(ATL_cpotrfU.o): In function `ATL_cpotrfU':
ATL_potrfU.c:(.text+0xea): undefined reference to `cblas_ctrsm'
ATL_potrfU.c:(.text+0x124): undefined reference to `cblas_cherk'
/usr/local/atlas/lib/liblapack.a(ATL_cpotrs.o): In function `ATL_cpotrs':
ATL_potrs.c:(.text+0x12e): undefined reference to `cblas_ctrsm'
ATL_potrs.c:(.text+0x177): undefined reference to `cblas_ctrsm'
ATL_potrs.c:(.text+0x20b): undefined reference to `cblas_ctrsm'
ATL_potrs.c:(.text+0x255): undefined reference to `cblas_ctrsm'
ATL_potrs.c:(.text+0x2a8): undefined reference to `cblas_ctrsm'
/usr/local/atlas/lib/liblapack.a(ATL_cpotrs.o):ATL_potrs.c:(.text+0x2f1): more undefined references to `cblas_ctrsm' follow
/usr/local/atlas/lib/libf77blas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x18): undefined reference to `s_wsfe'
xerbla.f:(.text+0x2f): undefined reference to `do_fio'
xerbla.f:(.text+0x46): undefined reference to `do_fio'
xerbla.f:(.text+0x50): undefined reference to `e_wsfe'
xerbla.f:(.text+0x64): undefined reference to `s_stop'
collect2: ld returned 1 exit status
make: *** [testing_numeric_bindings_chol] Error 1
make: Target `all' not remade because of errors.
Build complete for project testing_numeric_bindings_chol

b) With cblas

make -k all
Building target: testing_numeric_bindings_chol
Invoking: GCC C++ Linker
g++ -L/usr/local/atlas/lib -o"testing_numeric_bindings_chol"  ./main.o   -llapack -lf77blas -lcblas -latlas
/usr/local/atlas/lib/libf77blas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x18): undefined reference to `s_wsfe'
xerbla.f:(.text+0x2f): undefined reference to `do_fio'
xerbla.f:(.text+0x46): undefined reference to `do_fio'
xerbla.f:(.text+0x50): undefined reference to `e_wsfe'
xerbla.f:(.text+0x64): undefined reference to `s_stop'
collect2: ld returned 1 exit status
make: *** [testing_numeric_bindings_chol] Error 1
make: Target `all' not remade because of errors.
Build complete for project testing_numeric_bindings_chol