SuiteSparse fortran problems [ld: library not found for -lgfortranbegin]

Hi there
I'm trying to get SuiteSparse to work in Mac. It needs fortran to work compil, so I grabed the pkg from this site and installed but now I get this error

g++ -O3 -fexceptions -I../../CHOLMOD/Include -I../../UFconfig -I../Include qrdemo.cpp -o qrdemo /opt/local/lib/libspqr.a /opt/local/lib/libcholmod.a /opt/local/lib/libamd.a /opt/local/lib/libcolamd.a /opt/local/lib/libmetis.a /opt/local/lib/libccolamd.a /opt/local/lib/libcamd.a -lm -llapack -lblas -lgfortran -lgfortranbegin -lg2c
ld: library not found for -lgfortranbegin

I've found a

libgfortranbegin.a
libgfortranbegin.la

In the gfotran from http://hpc.sourceforge.net/

I tried adding the path to DYLD_LIBRARY_PATH, but no luck
Any ideas what am I doing wrong

thanks in advance.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I don't think you actually

I don't think you actually need gfortran. Did you try the Mac configuration in UFconfig.mk?

http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse/UFconfig/UFconfig.mk

thanks

Yes sir it worked, thanks,
I should have read the the entire file