<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MKL linking, for_main.o error message in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-linking-for-main-o-error-message/m-p/924823#M13293</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;#! /bin/csh&lt;BR /&gt;ifort -c  filename1.f  filename2.f&lt;BR /&gt;ifort -c  filename3.f&lt;BR /&gt;ifort -c  filenema4.f&lt;BR /&gt;ifort -o  filename5  filename1.o filename2.o  filename3.o  filename3.o&lt;BR /&gt;&lt;BR /&gt;After I add to my script file:&lt;BR /&gt;&lt;BR /&gt;ifort -L/MKLPATH   -lmkl_ia32   -lguide   -lpthread   -lm&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;/opt/intel_fc_80/lib/for_main.o(.text+0x1c): In function 'main'&lt;BR /&gt;: Undefined reference to 'MAIN_'&lt;BR /&gt;&lt;BR /&gt;How could it be possible to solve this first error message?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
    <pubDate>Wed, 01 Dec 2004 06:04:17 GMT</pubDate>
    <dc:creator>Deleted_U_Intel</dc:creator>
    <dc:date>2004-12-01T06:04:17Z</dc:date>
    <item>
      <title>MKL linking, for_main.o error message</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-linking-for-main-o-error-message/m-p/924823#M13293</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;#! /bin/csh&lt;BR /&gt;ifort -c  filename1.f  filename2.f&lt;BR /&gt;ifort -c  filename3.f&lt;BR /&gt;ifort -c  filenema4.f&lt;BR /&gt;ifort -o  filename5  filename1.o filename2.o  filename3.o  filename3.o&lt;BR /&gt;&lt;BR /&gt;After I add to my script file:&lt;BR /&gt;&lt;BR /&gt;ifort -L/MKLPATH   -lmkl_ia32   -lguide   -lpthread   -lm&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;/opt/intel_fc_80/lib/for_main.o(.text+0x1c): In function 'main'&lt;BR /&gt;: Undefined reference to 'MAIN_'&lt;BR /&gt;&lt;BR /&gt;How could it be possible to solve this first error message?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Wed, 01 Dec 2004 06:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-linking-for-main-o-error-message/m-p/924823#M13293</guid>
      <dc:creator>Deleted_U_Intel</dc:creator>
      <dc:date>2004-12-01T06:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: MKL linking, for_main.o error message</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-linking-for-main-o-error-message/m-p/924824#M13294</link>
      <description>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.</description>
      <pubDate>Fri, 03 Dec 2004 03:53:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-linking-for-main-o-error-message/m-p/924824#M13294</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-12-03T03:53:13Z</dc:date>
    </item>
  </channel>
</rss>

