<?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 command line compile error on the MAC console in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181926#M148987</link>
    <description>&lt;P&gt;&amp;nbsp; I try to build the Fortran code containing several fortran files with modules. I run it like this :&lt;/P&gt;&lt;P&gt;ifort -c constant.f90 CommonSub.f90 typedef.f90 globals.f90 output.f90 Prepro.f90 mesh3d.f90 ccfluids.f90 RMHD3D.f90&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifort -o MHD constant.o CommonSub.o typedef.o globals.o output.o Prepro.o mesh3d.o ccfluids.o RMHD3D.o&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It open the following error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ld: can't link with a main executable file 'constant.o' for architecture x86_64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I fix this problem ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;The version of Intel Fortran compiler on Mac machine :&lt;/P&gt;&lt;P&gt;$ ifort -V&lt;/P&gt;&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.0.117 Build 20180804&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2018 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Dec 2018 14:07:31 GMT</pubDate>
    <dc:creator>gao__zhiming</dc:creator>
    <dc:date>2018-12-26T14:07:31Z</dc:date>
    <item>
      <title>command line compile error on the MAC console</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181926#M148987</link>
      <description>&lt;P&gt;&amp;nbsp; I try to build the Fortran code containing several fortran files with modules. I run it like this :&lt;/P&gt;&lt;P&gt;ifort -c constant.f90 CommonSub.f90 typedef.f90 globals.f90 output.f90 Prepro.f90 mesh3d.f90 ccfluids.f90 RMHD3D.f90&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifort -o MHD constant.o CommonSub.o typedef.o globals.o output.o Prepro.o mesh3d.o ccfluids.o RMHD3D.o&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It open the following error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ld: can't link with a main executable file 'constant.o' for architecture x86_64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I fix this problem ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;The version of Intel Fortran compiler on Mac machine :&lt;/P&gt;&lt;P&gt;$ ifort -V&lt;/P&gt;&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.0.117 Build 20180804&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2018 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:07:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181926#M148987</guid>
      <dc:creator>gao__zhiming</dc:creator>
      <dc:date>2018-12-26T14:07:31Z</dc:date>
    </item>
    <item>
      <title>A bit of Googling suggests</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181927#M148988</link>
      <description>&lt;P&gt;A bit of Googling suggests that constant.o is already linked as an executable file. How sure are you that you used -c on the first line?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:13:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181927#M148988</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-12-26T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Your command lines are fine.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181928#M148989</link>
      <description>&lt;P&gt;Your command lines are fine. Simply remove the nine .o files, recompile and relink. The problem should go away.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 10:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/command-line-compile-error-on-the-MAC-console/m-p/1181928#M148989</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-28T10:49:00Z</dc:date>
    </item>
  </channel>
</rss>

