On Jun 1, 4:44 pm, Ivan Costa <ivancvie...@gmail.com> wrote:
> Could anyone help me with this problem? I have compiled all modules with the
> same version of g95 and I got this erro.
> Thanks,
> Ivan
> $ g95 dinverse.o zroots.o dcholsl.o p2chi.o outar.o readhead.o dfft.o
> number.o dcholdc.o f2kcli.o taper.o stats.o port.o cdg.o TesteII.o far.o
> rnumread.o hea
> d.o cdchi.o charead.o numread.o sort.o -o TesteII_f95 -I c:/mingw/lib -I
> /c/msys/1.0/home/Anakin/matio-1.3.3/src/
> TesteII.o:TesteII.f90:(.text+0x6b6): undefined reference to
> `matio_MP_fmat_open'
Hi,
The -I (I as in "include") flag does not do any linking, it just tells
the compiler where to find .mod files. It looks like you also need to
link the matio library, with something like "-L /c/msys/1.0/home/
Anakin/matio-1.3.3 -l matio" (where here -l is l as in "library").
John