MKL linking, for_main.o error message

MKL linking, for_main.o error message

imagem de jempartinez2001@yahoo.com

Hi,

I'm trying to run several files using ifort and MKL written at the beginning in f77. I have followed the procedure outlined in the user guide volume I, this is:

#! /bin/csh
ifort -c filename1.f filename2.f
ifort -c filename3.f
ifort -c filenema4.f
ifort -o filename5 filename1.o filename2.o filename3.o filename3.o

After I add to my script file:

ifort -L/MKLPATH -lmkl_ia32 -lguide -lpthread -lm

in order to link the MKL LAPACK and BLAS libraries, after running the script it shows me that it is not recognizing any of the libraries routines and besides it shows the following error message:

/opt/intel_fc_80/lib/for_main.o(.text+0x1c): In function 'main'
: Undefined reference to 'MAIN_'

How could it be possible to solve this first error message?


Thanks,

2 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Community Admin

From what you have provided I think your last line shoud be something like this:

ifort *.o -L/MKLPATH -lmkl_ia32 -lguide -lpthread -lm

I used a bit of shorthand *.o rather than list the files you had listed.

Faça login para deixar um comentário.