I am trying to compile a program on mac using following command
g++-4.2 main.cpp -o testProduct -L/Users/shubhamgupta/LAPACK/lapack-3.4.0/ -l refblas -l lapack
The program has call for
zgelss_
and
zgemm_
I am getting following errors
Undefined symbols for architecture x86_64:
"__gfortran_st_write", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_string_len_trim", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_transfer_character", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_transfer_integer", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_st_write_done", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_stop_numeric", referenced from:
_xerbla_ in librefblas.a(xerbla.o)
"__gfortran_concat_string", referenced from:
_zunmqr_ in libreflapack.a(zunmqr.o)
_zunmlq_ in libreflapack.a(zunmlq.o)
"__gfortran_compare_string", referenced from:
_ilaenv_ in libreflapack.a(ilaenv.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
I dont under stand where I was wrong
may during Installing
FYI
I used gfotran 4.4 -O2 .......
for Installing the refBlas and Lapack

