<?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 problem with including files in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806948#M40704</link>
    <description>&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;I am using pre-built netcdf.lib version 3.6.1. I dont
understand what you mean be the interface. Is it simply the netcdf.inc which is
shown below or I need to write a new interface. Moreover, I have included
netcdf.lib in the linker option of the application and in the librarian option
of the libraries but it didnt help. Do I need to do anything else? I have
attached the new logs.&lt;/P&gt;

&lt;P&gt;Sorry if I am too amature.&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Reza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31315')"&gt;netcdf.inc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31316')"&gt;3+BuildLog.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31317')"&gt;1+BuildLog.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31318')"&gt;2+BuildLog.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2010 15:05:23 GMT</pubDate>
    <dc:creator>Reza_Ahmadian</dc:creator>
    <dc:date>2010-10-18T15:05:23Z</dc:date>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806933#M40689</link>
      <description>&lt;BR /&gt;&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have started using Intel Fortran after a long time of
using Compaq Fortran. And I have been setting up a solution which used to work
in Compaq Fortran in Intel Fortran, but it gives me linking error which doesnt
make sense to me. I was wondering if any one can help.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The solution consists of three projects, 1 console
application and 2 static libraries. I refer to them as project 1, 2 and 3, as
you can see below.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The second library (project
2) depends on the first library (project 1) and the application (project 3) depends
on both libraries (project 1 and 2). Netcdf.inc file which consist of some data
is included in all three projects. All the projects compile correctly and two
libraries are built without any error. However, when I build the application or
the solution I receive many linking errors such as you can see below.&lt;/P&gt;Error 1  error LNK2019: unresolved external symbol _NF_STRERROR referenced in function _CWRMETHODS_mp_CHECKNETCDFSTATUS LibCwrCommon.lib(cwrmethods.obj) &lt;BR /&gt;&lt;BR /&gt;Error 2  error LNK2001: unresolved external symbol _NF_STRERROR LibCwrCommon.lib(dysimio.obj) &lt;BR /&gt;Error 4  error LNK2019: unresolved external symbol _NF_INQ_VARID referenced in function _CWRMETHODS_mp_GETVARID LibCwrCommon.lib(cwrmethods.obj) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LibCwrCommon.lib is the first library or project 1.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.intel.com/../../file/31248" title="errors.TIF" alt="errors.TIF" /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;This doesnt make sense to me as these variables which are
referred to as unresolved external symbols in the error message are part the
netcdf.inc which is included in the subroutines and functions via Include
command. For instance, the first error is about unresolved external symbol _NF_STRERROR
referenced in function _CWRMETHODS_mp_CHECKNETCDFSTATUS. &lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;However, as you can see below, NF_STRERROR is declared in
netcdf.inc and netcdf.inc is included in the CHECKNETCDFSTATUS function using
the include command. &lt;/P&gt;&lt;P&gt;netcdf.inc:  NF_STRERROR declared on line 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;[fxfortran]!
! miscellaneous routines:
!
      character*80   nf_inq_libvers
      external       nf_inq_libvers

      character*80   nf_strerror
!                         (integer             ncerr)
      external       nf_strerror

      logical        nf_issyserr
!                         (integer             ncerr)
      external       nf_issyserr

!
! control routines:
!
[/fxfortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;CHECKNETCDFSTATUS function, netcdf.inc is included on lie 9 and NF_STRERROR is used on line 25.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran] !========================================================
  SUBROUTINE CheckNetCDFStatus(netCDFstatusCode,infoRoutine,infoVar)
  
    IMPLICIT NONE


    ! ---------------------------------------
    
       INCLUDE 'netcdf.inc'    
   
    INTEGER,                INTENT(IN) :: netCDFstatusCode
    CHARACTER(*),           INTENT(IN) :: infoRoutine
    CHARACTER(*), OPTIONAL, INTENT(IN) :: infoVar

    !----------------------------------

    IF (NetCDFstatusCode .NE. NF_NOERR) THEN
       WRITE(*,'(1X,"CheckNetCDFStatus:  A netCDF access error has &amp;amp;
                                                    &amp;amp;occurred.")')
       IF (PRESENT(infoVar)) THEN
          WRITE(*,'(1X,3X,"netCDF entity:  ",A)') infoVar
       END IF
       WRITE(*,'(1X,3X,"Reported by:  ",A)') infoRoutine
       WRITE(*,'(1X,3X,"netCDF status value = ",I0)') netCDFstatusCode
       WRITE(*,'(1X,3X,A)') NF_STRERROR(netCDFstatusCode)
    END IF
  END SUBROUTINE CheckNetCDFStatus
[/fortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;I would be grateful if anyone can help why this is happening
or how I can resolve it.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Reza&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:50:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806933#M40689</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-14T11:50:48Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806934#M40690</link>
      <description>Compaq Visual Fortran and Intel Fortran use different default calling conventions with external functions and subroutines. If you use Intel Fortran to compile some source files and try to link to libraries or .OBJ files produced by CVF, you will run into mismatches. &lt;BR /&gt;&lt;BR /&gt;If you have the sources for everything, it is best to recompile and rebuild the libraries using the current compiler. If you do not have the library sources, you will need to know how they were compiled and provide switches to the Intel compiler to enable compatibility with the CVF libraries. &lt;BR /&gt;&lt;BR /&gt;Read the documentation on conversion from CVF ("Migrating from CVF" link at the top of this forum), and the chapters on calling conventions and mixed language programming in the Intel Fortran User Guide.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 14:08:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806934#M40690</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-14T14:08:58Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806935#M40691</link>
      <description>Thanks for your reply. I have the source code for all these files and I have built all the libraries using Intel Fortran, that's why I am confused. Any idea what I can do?</description>
      <pubDate>Thu, 14 Oct 2010 14:56:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806935#M40691</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-14T14:56:50Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806936#M40692</link>
      <description>In your Fortran projects, open the project properties &amp;gt; Fortran &amp;gt; External Procedures. Make sure that the Calling Convention is "Default" or "&lt;INHERIT from="" project="" defaults=""&gt; If you converted projects from CVF, it would set the convention to CVF and you may have a mixture.&lt;/INHERIT&gt;</description>
      <pubDate>Thu, 14 Oct 2010 15:02:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806936#M40692</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-14T15:02:39Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806937#M40693</link>
      <description>Thanks Steve. I checked all the project and files and they were all set to default. I use :&lt;BR /&gt;Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2008, 11.1.3466.2008&lt;BR /&gt;Microsoft Visual Studio 2008, version 9.0.30729.1 SP&lt;BR /&gt;&lt;BR /&gt;the other options available forCalling Convention are: &lt;BR /&gt;C, Reference&lt;BR /&gt;STDCALL&lt;BR /&gt;STDCALL, Reference&lt;BR /&gt;CVF&lt;BR /&gt;&lt;BR /&gt;Shall I set the Call Convention to anything else? Is there anything else I can do?&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;&lt;BR /&gt;Reza</description>
      <pubDate>Thu, 14 Oct 2010 16:59:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806937#M40693</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-14T16:59:43Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806938#M40694</link>
      <description>Leave this setting at Default.&lt;BR /&gt;&lt;BR /&gt;Let's concentrate on NF_STRERROR - where is this routine defined? Is it in a module?&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806938#M40694</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-14T17:07:00Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806939#M40695</link>
      <description>yes it is. and it is declared in an external file, i.e. netcdf.inc. This file is included in that modulde using Include statement as:&lt;BR /&gt;&lt;BR /&gt;INCLUDE 'netcdf.inc' &lt;BR /&gt;&lt;BR /&gt;I get 72 linking errors and all of them are related to the variables which are declared in netcdf.inc.&lt;BR /&gt;&lt;BR /&gt;I can send you the file including the NF_STRERROR if you think it is useful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:19:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806939#M40695</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-14T17:19:23Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806940#M40696</link>
      <description>Although I have not used NetCDF myself, this is probably a good guess of the situation:&lt;BR /&gt;&lt;BR /&gt;The include file contains only declarations that are used in correctly compiling your source code that calls the function &lt;I&gt;nf_strerror. &lt;/I&gt;The actual source code that implements the function is probably part of the NetCDF library.&lt;BR /&gt;&lt;BR /&gt;If so, all that is needed for you to do is to include the NetCDF library in the link command lines.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 18:05:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806940#M40696</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-14T18:05:49Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806941#M40697</link>
      <description>So the routine is defined in an include file and you include it in the module. If so, make sure you USE that module and that you do NOT name the routine in an EXTERNAL statement.</description>
      <pubDate>Thu, 14 Oct 2010 18:05:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806941#M40697</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-14T18:05:53Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806942#M40698</link>
      <description>Steve, I don't think that I have seen anything in this thread to indicate that O.P. is using Fortran 9X modules and module USE statements. We should probably ask to see a short reproducer at this point.</description>
      <pubDate>Thu, 14 Oct 2010 20:14:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806942#M40698</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-14T20:14:43Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806943#M40699</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=495713" class="basic" href="https://community.intel.com/en-us/profile/495713/"&gt;Reza Ahmadian&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="border: 1px inset; padding: 5px; background-color: #e5e5e5; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;yes it is. and it is declared in an external file, i.e. netcdf.inc. This file is included in that modulde using Include statement as:&lt;BR /&gt;&lt;BR /&gt;INCLUDE 'netcdf.inc' &lt;BR /&gt;&lt;BR /&gt;I get 72 linking errors and all of them are related to the variables which are declared in netcdf.inc.&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;The things declared in netcdf.inc are not variables - they are &lt;B&gt;functions&lt;/B&gt; (based off the declarations and your usage). The problem is that there are no definitions for those functions. The compiler has been told what type the function is, but the compiler and linker in combination have not been given the actual code that does the work for those functions.&lt;BR /&gt;&lt;BR /&gt;I expect that your solution is missing a library, which is probably called netcdf.lib, or you have specified that library but it has not been compiled in a manner that is compabile for Intel Fortran defaults (hence the other responses).&lt;BR /&gt;&lt;BR /&gt;Do you have the netcdf library in a form suitable for Intel Fortran? Alternatively, do you have it in a form suitable for CVF?&lt;BR /&gt;&lt;BR /&gt;In Visual Studio solutions you can specify a library on the properties page under Linker &amp;gt; Input &amp;gt; Additional Dependencies.&lt;BR /&gt;&lt;BR /&gt;Posting your build log may help further diagnosis.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 20:38:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806943#M40699</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2010-10-14T20:38:47Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806944#M40700</link>
      <description>I have added NetCDF to the project as an exiting item and also included its folder to the "Additional Include Directories" which is equivalent to: /I"L:\Debugging\Setup Fortran 2010\include". do you mean I should do something else?&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Oct 2010 15:23:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806944#M40700</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-15T15:23:25Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806945#M40701</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=495713" class="basic" href="https://community.intel.com/en-us/profile/495713/"&gt;Reza Ahmadian&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;I have added NetCDF to the project as an exiting item...&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;

&lt;P&gt;Exactly what did you add to the project - what extension did the file have?&lt;/P&gt;

                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;...and also included its folder to the "Additional Include Directories" which is equivalent to: /I"L:\Debugging\Setup Fortran 2010\include". do you mean I should do something else?&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;

&lt;P&gt;Include directories are used by the compiler (note in Visual Studio you specify this in the Fortran compiler properties) - for finding things such as the files named in INCLUDE statements (and other files such as modules and #include files, that aren't directly relevant here). &lt;/P&gt; 

&lt;P&gt;It is not the &lt;I&gt;compiler&lt;/I&gt; that is reporting errors - it is finding all the files that it thinks it needs.&lt;/P&gt;&lt;P&gt; You have a &lt;I&gt;linking&lt;/I&gt; problem, which comes after compiling.  That might be caused by an "upstream" problem with the compiler settings (the linker has been given the wrong symbols to link together into your final program) or it might be caused by missing libraries or object files - we're not sure yet. &lt;/P&gt;&lt;P&gt;The &lt;I&gt;linker&lt;/I&gt; is looking for the (previously compiled) object code that sits behind a particular function, but it can't find that code. The INC files don't contain that code - they just tell the &lt;I&gt;compiler&lt;/I&gt; that a function exists and the type of result it returns. &lt;/P&gt;
&lt;P&gt;The linker also has a search path for libraries, but if it couldn't find a library that it was told it needed it would complain about that directly.&lt;/P&gt;

&lt;P&gt;So post your build log.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:48:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806945#M40701</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2010-10-15T22:48:38Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806946#M40702</link>
      <description>&lt;P&gt;Hi Ian, &lt;/P&gt;&lt;P&gt;You are absolutely right about in yopur reply #10. Those are functions and I hadnt
noticed that before. I have another library which is already built in CVF but
unfortunately, I dont have the source code for that one. I had included the
folder containing that library in Properties&amp;gt;Fortran&amp;gt;General&amp;gt;additional
include directories and had also added the library to the project as an
existing item and that had not helped. Is this way of adding a library to the
solution correct? &lt;/P&gt;

&lt;P&gt;If So, I think the library must be incompatible with Intel
Fortran. Is there anyway that I can add this library which is built using CVF to
the Intel Fotran solution?&lt;/P&gt;

&lt;P&gt;I have also attached my build logs. As I have already mentioned, the order of building is as sollows: 3,1,2&lt;/P&gt;

&lt;P&gt;Thank you very much,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Reza&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31307')"&gt;&lt;/A&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31308')"&gt;1-+BuildLog+caedym1.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31309')"&gt;2-+BuildLog+full+2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31311')"&gt;3-+BuildLog+libcommon+3.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2010 13:19:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806946#M40702</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-18T13:19:16Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806947#M40703</link>
      <description>From the logs it is clear that the unsatisfied externals are the Fortran wrappers which redirect calls to the underlying C functions in NetCDF, that is, externals with names prefixed with _NF_. &lt;BR /&gt;&lt;BR /&gt;I do not know which version of NetCDF you are using and whether you built the libraries yourself or obtained a prebuilt set; however, a significant point is that from version 3.6.2 and later the Fortran interfaces are not included in the DLL by default. This is the relevant quote from UCAR:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;I&lt;I&gt;n all netCDF versions before 3.6.2, the Fortran 77, Fortran 90, and
the C libraries were all built into the same library file. That is,
the libnetcdf.a file contains the C functions, the F77 functions, and
the F90 functions. (The C++ library is separate.)

   &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Starting with version 3.6.2, another method of building the netCDF
fortran libraries becomes available. With the
enable-separate-fortran option to configure, the user can specify
that the C library should not contain the fortran functions. In these
cases an additional library, libnetcdff.a (note the extra f) will
be built. This library contains the fortran functions.

   &lt;/I&gt;&lt;/P&gt;Thus, you need to determine the location in your NetCDF installation where the Fortran interface functions are kept, and include that library in the link step.In all likelihood, that library will be called NETCDFF.lib&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2010 14:31:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806947#M40703</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-18T14:31:04Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806948#M40704</link>
      <description>&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;I am using pre-built netcdf.lib version 3.6.1. I dont
understand what you mean be the interface. Is it simply the netcdf.inc which is
shown below or I need to write a new interface. Moreover, I have included
netcdf.lib in the linker option of the application and in the librarian option
of the libraries but it didnt help. Do I need to do anything else? I have
attached the new logs.&lt;/P&gt;

&lt;P&gt;Sorry if I am too amature.&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Reza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31315')"&gt;netcdf.inc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31316')"&gt;3+BuildLog.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31317')"&gt;1+BuildLog.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A onclick="ndownload('http://software.intel.com/file/31318')"&gt;2+BuildLog.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:05:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806948#M40704</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-18T15:05:23Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806949#M40705</link>
      <description>By "interfaces" I meant wrapper routines that are included in the NetCDF.dll that are for calling from Fortran code. These routines do nothing but pass the parameters through to the C routines that do the actual work. In this sense, the Fortran wrapper routines provided a Fortran "interface" to the C routines.&lt;BR /&gt;&lt;BR /&gt;The UCAR file &lt;A href="ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/WIN32_README.TXT"&gt;WIN32_README.TXT&lt;/A&gt; gives instructions on how to build a version of netcdf.dll that includes the Fortran interfaces. I just tried building it on Windows XP, and things went fine. The building of the DLL took less than a minute.&lt;BR /&gt;&lt;BR /&gt;I think that you have at least two choices: 1) use the DLL that you have, and convert your code to call the C routines in NetCDF directly, and 2) build a new version of the DLL as I described in the preceding paragraph.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2010 17:33:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806949#M40705</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-18T17:33:20Z</dc:date>
    </item>
    <item>
      <title>problem with including files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806950#M40706</link>
      <description>Thank you very much for this. I really didn't know that I should make the interface myself. I will try and make the dll as you described and hopefully it will be fine. I will let you know how I am getting on with it.&lt;BR /&gt;&lt;BR /&gt;Thank you veryt much for your help once again,&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2010 23:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-including-files/m-p/806950#M40706</guid>
      <dc:creator>Reza_Ahmadian</dc:creator>
      <dc:date>2010-10-18T23:34:00Z</dc:date>
    </item>
  </channel>
</rss>

