On Mon, Aug 6, 2012 at 11:41 PM, benzhi cao <caobenzhi0915@xxxxxxxxx> wrote: > The follows is the errors when i use the -Bstatic -lgfortran: -Bstatic will make everything following static, including the C library. Try -Bstatic -lgfortran -Bdynamic. Ian