<?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 Problems compiling a code that works fine on Windows and Linux in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745369#M3543</link>
    <description>Brian,&lt;BR /&gt;&lt;BR /&gt;At this point I cannot help any further without the code. Would it be possible to 'make clean' and tar up the entire application, makefile(s), and input files? You can attach to this forum using this technique:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/how-to-attach-file-insert-code-into-forum-post/"&gt;http://software.intel.com/en-us/articles/how-to-attach-file-insert-code-into-forum-post/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I can make this thread private so only you and I can see it (let me know to do this and confirm that it's private if this is how you want to work).&lt;BR /&gt;&lt;BR /&gt;ron</description>
    <pubDate>Wed, 07 Apr 2010 21:07:23 GMT</pubDate>
    <dc:creator>Ron_Green</dc:creator>
    <dc:date>2010-04-07T21:07:23Z</dc:date>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745355#M3529</link>
      <description>I have a code that we have been compiling for years on LInux and Windows. Just got a Mac and I am trying to compile it using IFC 11.1.084. I am getting an error that we do not understand.
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;ifort -02 -auto -ansi_alias- -pad_source -warn -traceback -fltconsistency -fpconstant&lt;/DIV&gt;
&lt;DIV&gt;-nogen-interfaces relap/relap5.o \\&lt;/DIV&gt;
&lt;DIV&gt;relap/relapo.a scdap/scdap.a contmn/contmn.a \\&lt;/DIV&gt;
&lt;DIV&gt;matpro/matpro.a scdap/scdap.a envrl/envrl.a \\&lt;/DIV&gt;
&lt;DIV&gt;-Vaxlib -o relap5o.x&lt;/DIV&gt;
&lt;DIV&gt;ipo: warning #11015 Warning unknown option -no_compact_unwind&lt;/DIV&gt;
&lt;DIV&gt;Undefined symbols:&lt;/DIV&gt;
&lt;DIV&gt;"_zrech2_mp_wh2s", referenced from:&lt;/DIV&gt;
&lt;DIV&gt;_recomb_ in contemo.a(recomb.o)&lt;/DIV&gt;
&lt;DIV&gt;_recomb_ in contemo.a(recomb.o)&lt;/DIV&gt;
&lt;DIV&gt;_recomb_ in contemo.a(vaenph.o)&lt;/DIV&gt;
&lt;DIV&gt;_recomb_ in contemo.a(vaenps.o)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;And the list goes on and on. Not sure what to do. Am i missing an option for compiling on a mac?&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Mar 2010 15:45:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745355#M3529</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-03-30T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745356#M3530</link>
      <description>Maybe start by dropping some obsolete or undocumented options to see if they cause a problem.</description>
      <pubDate>Tue, 30 Mar 2010 16:54:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745356#M3530</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-30T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745357#M3531</link>
      <description>Are youreferringto the -no_compact_unwind option? We are not using that option and we are not using ipo option (interprocedural optimization). All the options in the ifort command are usable on the mac IFC.</description>
      <pubDate>Tue, 30 Mar 2010 17:34:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745357#M3531</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-03-30T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745358#M3532</link>
      <description>The ipo probably comes as a result of the link script checking by default for any IPO files, so that isn't directly the fault of any options, except as a result of undefined reference.&lt;BR /&gt;Vaxlib is a very old option, pad_source isn't documented, fltconsistency isn't documented in the latest compiler (not Mac) which I have.&lt;BR /&gt;fltconsistency resembled the current option '-fp-model source'.&lt;BR /&gt;ansi-alias is a C option, it should be the default (but isn't documented) for ifort.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2010 18:33:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745358#M3532</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-30T18:33:53Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745359#M3533</link>
      <description>you did not say how you built the .a libraries. Make sure to use -O2 and NOT use -fast or -ipo. You did rebuild these on the Mac and are not trying to use libraries built on Linux or Windows, right?</description>
      <pubDate>Tue, 30 Mar 2010 18:44:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745359#M3533</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-30T18:44:09Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745360#M3534</link>
      <description>We are using the command AR to build the libraries. What we have found in that if we manually load the object decks, rather than using a library(the name of the library was left in the load statement), the program loaded and would execute.
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have attached the look file.&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Mar 2010 19:52:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745360#M3534</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-03-30T19:52:47Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745361#M3535</link>
      <description>On Mac OS X you need to run 'ranlib' on the libraries after you create them. This is unique to Mac OS X. after the ar, add a rule to 'ranlib mylib.a' where you replace mylib.a with your library name.&lt;BR /&gt;&lt;BR /&gt;the -no_compact_unwind is a warning only, and was introduced by the Mac OS X linker ld which changed in 10.6.2. This ld option is being sent to our ifort driver which CURRENTLY doesn't recognize this option. There is a fix in the works for this. The bug number on this is DPD200089706 and you should see it in the next compiler update.&lt;BR /&gt;&lt;BR /&gt;For now, work around it with compiler option -Wl,-no_compact_unwind -wd,11015&lt;BR /&gt;&lt;BR /&gt;which will surpress the warning message.&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2010 21:31:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745361#M3535</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-30T21:31:45Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745362#M3536</link>
      <description>I added the ranlib line as specified. Still having same problems.
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Here is how the make file looks.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV id="_mcePaste"&gt;ar -rsv envrl/envrl$(NM).a $?&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;ranlib envrl/envrl$(NM).a&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Mar 2010 19:24:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745362#M3536</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-03-31T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745363#M3537</link>
      <description>OK, let's look at one missing symbol:&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;Undefined symbols:&lt;/DIV&gt;
"_zrech2_mp_wh2s",&lt;BR /&gt;&lt;BR /&gt;decoding this: there is a module named 'zrech2'. inside this module is a symbol, either a subroutine or function or data variable named 'wh2s'. "_mp_" is a generic inserted part of the name for "module procedure". What is odd, by default ifort should be adding a trailing underscore - I would have expected a symbol named _zrech2_mp_wh2s_ UNLESS you have compiled with -assume nounderscore or you have a !DEC$ ALIAS directive to change the way the name is exported. BUT inside procedure recomb, there are calls or uses of it that are referencing the name WITHOUT underscore. Why? &lt;BR /&gt;&lt;BR /&gt;So, 2 things to check: &lt;BR /&gt;1) How is the symbol created for wh2s: find where wh2s is declared inside module zrech2. That module is part of a source file. You compile/make to create a .o object file, let's call it 'target.o' just for an example. Use command 'nm' to look for that symbol in target .o:&lt;BR /&gt;&lt;BR /&gt;nm target.o | grep -i wh2s&lt;BR /&gt;&lt;BR /&gt;Now, does wh2s have the Target "T " attribute AND does it have a trailing underscore, like _zrech2_mp_wh2s_&lt;BR /&gt;&lt;BR /&gt;2) find file recomb.o. Use nm to confirm that the reference to _zrech2_mp_wh2s is in there. It should have the "U " attribute, meaning it's a remote/external reference.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;"_zrech2_mp_wh2s", referenced from:&lt;/DIV&gt;
&lt;DIV&gt;_recomb_ in contemo.a(recomb.o)&lt;/DIV&gt;
&lt;BR /&gt;Now, figure out how recomb.o is built/made. Is there any options used like -assume nounderscore or -nus?&lt;BR /&gt;&lt;BR /&gt;IF you can't find module zrech2 somewhere in your source tree then you are missing source files or a library. Otherwise, figure out why the reference inside recomb.o/contemo.a is removing the underscore.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Wed, 31 Mar 2010 21:37:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745363#M3537</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-31T21:37:49Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745364#M3538</link>
      <description>I preformed the command: nm zrech2.obj | grep -i wh2s
&lt;DIV&gt;and got:
&lt;DIV id="_mcePaste"&gt;0000000000000010 C _zrech2_mp_wh2s_&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;I did the same thing for the recomb.obj file and got&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;U _zrech2_mp_ipzs_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_itrh_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_ndrh_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_qrh2_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_ttrh_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wgae_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wgas_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wh2e_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wh2s_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wn2e_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wn2s_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wo2e_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wo2s_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wvpe_&lt;/DIV&gt;
&lt;DIV&gt;U _zrech2_mp_wvps_&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;-assume is not used anywhere&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Mar 2010 22:41:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745364#M3538</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-03-31T22:41:50Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745365#M3539</link>
      <description>The nm output for zrech2.obj shows wh2s and "C" or Common symbol, typically for uninitialized data. Is it safe to assume that wh2s is module data - can you show the declaration of wh2s in module zrech2?&lt;BR /&gt;&lt;BR /&gt;We have seen some issues with "C" data in the past. What version of Mac OS X are you using? And what version of the linker, ld?&lt;BR /&gt;&lt;BR /&gt;$ ld -v&lt;BR /&gt;@(#)PROGRAM:ld PROJECT:ld64-95.2.12&lt;BR /&gt;&lt;BR /&gt;Finally, ld is supplied as part of the Xcode tools. What version is your Xcode?&lt;BR /&gt;&lt;BR /&gt;I'm a bit baffled as to why your initial post showed missing symbol "_zrech2_mp_wh2s" without the underscore. I see that the object containing the variable AND the calling routines are referring to the underscored version (correctly so).&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Thu, 01 Apr 2010 15:14:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745365#M3539</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-01T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745366#M3540</link>
      <description>I am running Mac OS X 10.6.2 and XCode 3.2.1&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ld version:&lt;/DIV&gt;&lt;DIV&gt;@(#)PROGRAM:ld PROJECT:ld64-95.2.12&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Apr 2010 14:48:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745366#M3540</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-04-02T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745367#M3541</link>
      <description>I am running Mac OS X 10.6.2 and XCode 3.2.1&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ld version:@(#)PROGRAM:ld PROJECT:ld64-95.2.12&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;One other thing is, I told the make file to manually load all object decks. When I did that, theexecutablewas createdsuccessfully.  There is a problem with loading the libraries.&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Apr 2010 17:02:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745367#M3541</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-04-02T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745368#M3542</link>
      <description>I removed several of the options and I still had the same problem.</description>
      <pubDate>Wed, 07 Apr 2010 15:35:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745368#M3542</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-04-07T15:35:39Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745369#M3543</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;At this point I cannot help any further without the code. Would it be possible to 'make clean' and tar up the entire application, makefile(s), and input files? You can attach to this forum using this technique:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/how-to-attach-file-insert-code-into-forum-post/"&gt;http://software.intel.com/en-us/articles/how-to-attach-file-insert-code-into-forum-post/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I can make this thread private so only you and I can see it (let me know to do this and confirm that it's private if this is how you want to work).&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Wed, 07 Apr 2010 21:07:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745369#M3543</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-07T21:07:23Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745370#M3544</link>
      <description>Have you had a chance to look at the attachment yet?</description>
      <pubDate>Tue, 27 Apr 2010 14:11:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745370#M3544</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-04-27T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745371#M3545</link>
      <description>yes, I am working on it today.&lt;BR /&gt;&lt;BR /&gt;I've simplified the compile options and ar and ranlib options but still no luck. It is odd, I can see the missing symbols inside the .a libraries! ar, ld, ranlib, to me, operate oddly on Mac OS. As you say, we'd be done on linux.&lt;BR /&gt;&lt;BR /&gt;I will keep investigating.&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Tue, 27 Apr 2010 19:00:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745371#M3545</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-27T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745372#M3546</link>
      <description>OK, the key is to simplify the ar and ranlib lines, PARTICULARLY ranlib:&lt;BR /&gt;&lt;BR /&gt;ar r blah blah blah&lt;BR /&gt;ranlib -c blah blah blah&lt;BR /&gt; ^ there's the key. This is different than on Linux:&lt;BR /&gt;&lt;BR /&gt;-c Include common symbols as definitions with respect to the table of contents. This is seldom the intended&lt;BR /&gt; behavior for linking from a library, as it forces the linking of a library member just because it uses an&lt;BR /&gt; uninitialized global that is undefined at that point in the linking. This option is included only because&lt;BR /&gt; this was the original behavior of ranlib. This option is not the default.&lt;BR /&gt;&lt;BR /&gt;Linux ar does this automatically, Mac OS ar/ranlib does not. Common symbols are all of your module data - no wonder there were so many undefined symbols.&lt;BR /&gt;&lt;BR /&gt;I found 1 or 2 of your 'ar' commands in your make* files that did not 
have a ranlib following them still. Check for those.&lt;BR /&gt;&lt;BR /&gt;your options to ifort could be cleaned up, but it's probably not critical. You have some really ancient compiler options, and some I've never seen ( -ansi_auto for example ). I would recommend these:&lt;BR /&gt;&lt;BR /&gt;-O2 -auto -no-ansi-alias -pad-source -traceback -fpmodel precise -fpconstant &lt;BR /&gt;&lt;BR /&gt;and any -warn &lt;ARG&gt; options you may want.&lt;BR /&gt;&lt;BR /&gt;ron&lt;/ARG&gt;</description>
      <pubDate>Tue, 27 Apr 2010 19:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745372#M3546</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-27T19:46:52Z</dc:date>
    </item>
    <item>
      <title>Problems compiling a code that works fine on Windows and Linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745373#M3547</link>
      <description>Thank you sooooo much for the help. What you suggested worked.</description>
      <pubDate>Wed, 28 Apr 2010 19:45:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-compiling-a-code-that-works-fine-on-Windows-and-Linux/m-p/745373#M3547</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-04-28T19:45:41Z</dc:date>
    </item>
  </channel>
</rss>

