- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
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,
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Although I don't know what MKL is, I can guess at least what one of the problems is.
> ifort -L/MKLPATH -lmkl_ia32 -lguide -lpthread -lm
> in order to link the MKL LAPACK and BLAS libraries, [. . .]
You need to specify your program to which you
want to link those libraries. Something like
The error message "Undefined reference to 'MAIN_'" usually means that you didn't tell the compiler which file contains your main program.
Hope this is of some help,
Ryo
Although I don't know what MKL is, I can guess at least what one of the problems is.
> ifort -L/MKLPATH -lmkl_ia32 -lguide -lpthread -lm
> in order to link the MKL LAPACK and BLAS libraries, [. . .]
You need to specify your program to which you
want to link those libraries. Something like
ifort filename1.o filename2.o -L ....
The error message "Undefined reference to 'MAIN_'" usually means that you didn't tell the compiler which file contains your main program.
Hope this is of some help,
Ryo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page