Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
problem with LACAML and static linking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erick Matsen <matsen@b...>
Subject: problem with LACAML and static linking
Hello everyone---

I apologize for posting what is certainly a naive question, but I have
not been able to find an answer on the web.

I am having trouble with static compilation and LACAML. I have used
ocamlopt with -ccopt -static a number of times sucessfully (with PCRE
and I think GSL), but when I added modules using LACAML I get a series
of errors like

/usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_':
(.text+0x3ad): undefined reference to `_gfortran_concat_string'
/usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_':
(.text+0x94f): undefined reference to `_gfortran_concat_string'

It appears that I need somehow to make sure that lapack can find
gfortgran, but libgfortran is sitting happily in /usr/lib.

I'm running ocaml 3.10.2, lacaml 3.0.19, and lapack 3.

Any help would be much appreciated.