<?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 Re: compiling errors...I don't know why it occurs about multipl in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742967#M1905</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I sourced the ifortvars.sh, iccvars.shto change to the 32 bit compiler for ifort and C respectivly, how do you do it for the linker?</description>
    <pubDate>Mon, 18 May 2009 17:13:48 GMT</pubDate>
    <dc:creator>crkkos</dc:creator>
    <dc:date>2009-05-18T17:13:48Z</dc:date>
    <item>
      <title>compiling errors...I don't know why it occurs about multiple definition between main.o and for_main.o</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742962#M1900</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;This is my problem below, if I have compiled my code by ifort, some errors has occurred. I don't know why for_main.o in /opt/intel/fce/9.0/lib/ make this kind of problems... However, main.f90 is made by me. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Could you let me know how to get a solution for my problem? Thanks.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;[mycat@mycom dr]$ifort -O3 -tpp7 -Vaxlib -ip -o sm precision.o global.o global_param.o global_app.o main.o init.o &lt;BR /&gt;main.o(.text+0x0): In function `main':&lt;BR /&gt;: multiple definition of `main'&lt;BR /&gt;/opt/intel/fce/9.0/lib/for_main.o(.text+0x0): first defined here &lt;BR /&gt;ld: Warning: size of symbol `main' changed from 70 in /opt/intel/fce/9.0/lib/for_main.o to 4052 in main.o&lt;BR /&gt;ld: warning: i386 architecture of input file `precision.o' is incompatible with i386:x86-64 output&lt;BR /&gt;ld: warning: i386 architecture of input file `global.o' is incompatible with i386:x86-64 output&lt;BR /&gt;ld: warning: i386 architecture of input file `global_param.o' is incompatible with i386:x86-64 output&lt;BR /&gt;ld: warning: i386 architecture of input file `global_app.o' is incompatible with i386:x86-64 output&lt;BR /&gt;ld: warning: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output&lt;BR /&gt;ld: warning: i386 architecture of input file `init.o' is incompatible with i386:x86-64 output&lt;BR /&gt;/opt/intel/fce/9.0/lib/for_main.o(.text+0x2e): In function `main':&lt;BR /&gt;: undefined reference to `MAIN__'&lt;BR /&gt;main.o(.text+0x17): In function `main':&lt;BR /&gt;: undefined reference to `f90_init'&lt;BR /&gt;main.o(.text+0x62): In function `main':&lt;BR /&gt;: undefined reference to `f_iof'&lt;BR /&gt;main.o(.text+0x82): In function `main':&lt;BR /&gt;: undefined reference to `f_iof'&lt;BR /&gt;main.o(.text+0xe2): In function `main':&lt;BR /&gt;: undefined reference to `f_iod'&lt;BR /&gt;main.o(.text+0xf8): In function `main':&lt;BR /&gt;: undefined reference to `f_iod'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;............................ The same problems happens below this line....&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 12:38:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742962#M1900</guid>
      <dc:creator>gtg330c</dc:creator>
      <dc:date>2007-01-23T12:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742963#M1901</link>
      <description>&lt;P&gt;Could you show me your main.f program? Do you have something like:&lt;/P&gt;
&lt;P&gt;program main &lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;end program main&lt;/P&gt;
&lt;P&gt;If you&lt;/P&gt;
&lt;P&gt;nm &lt;FONT size="2"&gt;/opt/intel/fce/9.0/lib/for_main.o&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;You'll see that 'main' is defined in for_main.o ( "T main ). It is an entry point in the startup routines that wrap and launch your user PROGRAM.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;so do this for me: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;nm main.o&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;and look for symbol "main". Is it in main.o as a Target "T main"?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;ron&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 23:44:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742963#M1901</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2007-01-23T23:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742964#M1902</link>
      <description>&lt;P&gt;forgot to add: I would bet $20 that somewhere in your code you have declared a variable named 'main'. Again, 'main' is a special name that you cannot use in your program.&lt;/P&gt;
&lt;P&gt;rename 'main' in your code.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 23:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742964#M1902</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2007-01-23T23:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742965#M1903</link>
      <description>Another problem you have is that you used the IA-32 compiler to compile these sources but are then trying to use the x64 (EM64T/Intel 64) ifort to link them.</description>
      <pubDate>Wed, 24 Jan 2007 00:07:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742965#M1903</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-24T00:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742966#M1904</link>
      <description>&lt;P&gt;Thanks for your helps.&lt;/P&gt;
&lt;P&gt;As Steve mentions, this problemscan have solved by removing 'main.o' file because this object file of the previousversionmade that and, after then, I have recompiled my code to link. &lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2007 17:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742966#M1904</guid>
      <dc:creator>gtg330c</dc:creator>
      <dc:date>2007-01-24T17:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742967#M1905</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I sourced the ifortvars.sh, iccvars.shto change to the 32 bit compiler for ifort and C respectivly, how do you do it for the linker?</description>
      <pubDate>Mon, 18 May 2009 17:13:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742967#M1905</guid>
      <dc:creator>crkkos</dc:creator>
      <dc:date>2009-05-18T17:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors...I don't know why it occurs about multipl</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742968#M1906</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/410342"&gt;crkkos&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;I sourced the ifortvars.sh, iccvars.shto change to the 32 bit compiler for ifort and C respectivly, how do you do it for the linker?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
The 32-bit compilers automatically invoke the 32-bit linker, assuming the 32-bit g++ and binutils are installed. If you invoke ld directly, it is your responsibility to choose the 32-bit one.&lt;BR /&gt;You are using out of date versions of the compilers; an upgrade might be indicated, if only so that the advice seen on this forum may be more relevant.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 19:27:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-errors-I-don-t-know-why-it-occurs-about-multiple/m-p/742968#M1906</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-05-18T19:27:27Z</dc:date>
    </item>
  </channel>
</rss>

