<?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 My first question is how are in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953646#M92925</link>
    <description>&lt;P&gt;My first question is how are you compiling/linking to NetCDF? The "best" way to do so would be to use "nc-config --libs" (or nf-config --libs if linking to Fortran). Often some tiny library can be missed in trying to link with NetCDF.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2014 15:47:05 GMT</pubDate>
    <dc:creator>Matt_Thompson</dc:creator>
    <dc:date>2014-01-09T15:47:05Z</dc:date>
    <item>
      <title>Problem linking to intel and netcdf4 libraries</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953645#M92924</link>
      <description>&lt;P&gt;I have just converted my code to generate netcdf4 rather than netcdf3 files but I am running into some problems with the compilation.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;The code appears to compile and link the appropriate intel&amp;nbsp; and necdf4 libraries detailed below&lt;/P&gt;

&lt;P&gt;NTELLIB=/apps/intel/2011.6.233/composer_xe_2011_sp1.6.233/compiler/lib/intel64/&lt;BR /&gt;
	INTELINC=/apps/intel/2011.6.233/composer_xe_2011_sp1.6.233/compiler/include/&lt;/P&gt;

&lt;P&gt;NCDFLIB=/apps/netCDF/4.3.0/intel/lib/&lt;BR /&gt;
	NCDFINCLUDE=/apps/netCDF/4.3.0/intel/include/&lt;/P&gt;

&lt;P&gt;NCDFLIBB=/apps/netCDF/4.2/fortran/intel/lib/&lt;BR /&gt;
	NCDFINCLUDEB=/apps/netCDF/4.2/fortran/intel/include/&lt;/P&gt;

&lt;P&gt;The library directories are also set in LD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;However at runtime I get the following error message&lt;/P&gt;

&lt;P&gt;forrtl: severe (168): Program Exception - illegal instruction&lt;BR /&gt;
	Image&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Routine&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	libintlc.so.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002B5068501188&amp;nbsp; Unknown&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	libnetcdff.so.5&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002B5069129068&amp;nbsp; Unknown&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	libnetcdff.so.5&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002B5069134DC8&amp;nbsp; Unknown&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	orac_preproc.x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000052BF5C&amp;nbsp; nc_open_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&amp;nbsp; nc_open.F90&lt;/P&gt;

&lt;P&gt;which indicates to me that the netcdf and intel libraries cannot be found?&lt;/P&gt;

&lt;P&gt;Can anyone helpme with this error?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 14:25:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953645#M92924</guid>
      <dc:creator>Caroline_P_</dc:creator>
      <dc:date>2014-01-09T14:25:10Z</dc:date>
    </item>
    <item>
      <title>My first question is how are</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953646#M92925</link>
      <description>&lt;P&gt;My first question is how are you compiling/linking to NetCDF? The "best" way to do so would be to use "nc-config --libs" (or nf-config --libs if linking to Fortran). Often some tiny library can be missed in trying to link with NetCDF.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:47:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953646#M92925</guid>
      <dc:creator>Matt_Thompson</dc:creator>
      <dc:date>2014-01-09T15:47:05Z</dc:date>
    </item>
    <item>
      <title>I suspect you are compiling</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953647#M92926</link>
      <description>&lt;P&gt;I suspect you are compiling with an -m option that is not appropriate for the processor on your system. It is not a case of missing libraries.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 20:23:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953647#M92926</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-01-09T20:23:09Z</dc:date>
    </item>
    <item>
      <title>As Steve points out, your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953648#M92927</link>
      <description>&lt;P&gt;As Steve points out, your actual error is "Illegal Instruction", which is likely a result of either your netcdf library or your program compiled with an improper instruction set (via the -m flag). &amp;nbsp;The "Unknown" statements are due to debugging symbols not being included in your netcdf library and is not your problem (nor is it a problem at all if you aren't trying to debug netcdf code).&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 23:48:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-to-intel-and-netcdf4-libraries/m-p/953648#M92927</guid>
      <dc:creator>Casey</dc:creator>
      <dc:date>2014-01-11T23:48:54Z</dc:date>
    </item>
  </channel>
</rss>

