<?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 of compilation with intel fortran in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824585#M49476</link>
    <description>Thank you again.&lt;BR /&gt;The mixed language programming isn't  problem for us because we already succeeded in building executables containing both fortran anc C and even C++ programs. &lt;BR /&gt;C and C++ programs are compiled with cl, fortran programs are compiled with intel fortran, and the whole application is builded with intel fortran.&lt;BR /&gt;Now if we want to use new feature contained in the opengl libraries, we succeeded to make object files from c++ programs linked to opengl functions, but when building the whole application with intel fortran we find the errors mentionned above: unresolved external symbols. So, we guess that in the build instructions using ifort, there is a missing link to the opengl library or something like that. But programming in mixed-language does not constitue a problem itself.&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Sep 2010 14:16:48 GMT</pubDate>
    <dc:creator>oswa</dc:creator>
    <dc:date>2010-09-14T14:16:48Z</dc:date>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824579#M49470</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a C ++ program which uses glut and I compiled with Intel Fortran, in the compilation I had of problem of link's edition .&lt;/P&gt;&lt;P&gt;please how make the link's edition of glut in the bat file ( opengl32.lib, glut32.lib ,glu32.lib and glut.h, glu.h , gl.h and open32.dll, glut32.dll, glu32.dll)?&lt;/P&gt;&lt;P&gt;my linker error output is:&lt;/P&gt;&lt;P&gt;ExCarre.obj : error LNK2019: unresolved external symbol glutInit referenced in function main&lt;/P&gt;&lt;P&gt;VBATCH00.exe : fatal error LNK1120: 18 unresolved external&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;here is the content of the BAT file for compiling the code:&lt;/P&gt;&lt;P&gt;cl /nologo /c ExCarre.cpp&lt;/P&gt;&lt;P&gt;rem ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% %LINK_*_SHARED_*% &lt;/P&gt;&lt;P&gt;ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% &lt;/P&gt;&lt;P&gt;DEL ExCarre.obj&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2010 13:42:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824579#M49470</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-09-13T13:42:21Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824580#M49471</link>
      <description>You do not say anything about compiler error messages, so I take it that the GLUT header files are specified either using the INCLUDE environmental variable or other means.&lt;BR /&gt;&lt;BR /&gt;You simply need to replace&lt;BR /&gt;&lt;BR /&gt; ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% &lt;BR /&gt;&lt;BR /&gt;by&lt;BR /&gt;&lt;BR /&gt; ifort /nologo /FeVBATCH00.exe ExCarre.obj %LINK_FNL% opengl32.lib glut32.lib glu32.lib&lt;BR /&gt;&lt;BR /&gt;and make sure that opengl32.dll, glut32.dll, glu32.dll are accessible throuth the PATH environmental variable.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:34:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824580#M49471</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-09-13T14:34:55Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824581#M49472</link>
      <description>&lt;P&gt;Thank you for your quick response.&lt;BR /&gt;&lt;BR /&gt;But i tried to copy the opengl32.dll, glut32.dll, glu32.dll in the compilation path unsuccessfully. when these libraries are in the compilation path, the compilator logically recognize them. But clearly it is not the case.&lt;BR /&gt;would you please show me the way to make sure that the libraries are accessible through the path environmental variables?&lt;BR /&gt;&lt;BR /&gt;PS: the error i get is the following:&lt;/P&gt;&lt;P&gt;ExCarre.obj : error LNK2019: unresolved external symbol glutInit referenced in function main&lt;/P&gt;&lt;P&gt;VBATCH00.exe : fatal error LNK1120: 18 unresolved external&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:27:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824581#M49472</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-09-13T15:27:54Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824582#M49473</link>
      <description>You are confusing DLLs and their corresponding stub libraries There are very few linkers in the Microsoft world that can directly use existing DLLs as input to a link step.&lt;BR /&gt;&lt;BR /&gt;Assuming that you have both iterms of the matched pair (opengl32.dll, opengl32.lib), and so on, consider the following. The DLLs are of no use during the linking of your applications. It is only the .lib files that are used. Do you have them?&lt;BR /&gt;&lt;BR /&gt;After the linking is completed, the .lib files are no longer needed until/unless you link again. &lt;BR /&gt;&lt;BR /&gt;After successfully linking, to run your application, you now need the .dll files.&lt;BR /&gt;&lt;BR /&gt;If you do not have the import libraries opengl32.lib, etc, you can build them from the DLLs by constructing a module definition file (.def). Details can be found at the MSDN site.</description>
      <pubDate>Mon, 13 Sep 2010 16:29:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824582#M49473</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-09-13T16:29:10Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824583#M49474</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;in the repertoire of work, i put files .dll ( opengl32.dll, glut32.dll, glu32.dll) and files .lib (opengl32.lib, glut32.lib, glu.lib) and files .h (glut.h, gl.h, glu.h).&lt;BR /&gt;&lt;BR /&gt;and i change the file.bat by:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;cl /nologo /c ExCarre.cpp&lt;/P&gt;&lt;P&gt;rem ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% %LINK_*_SHARED_*% &lt;/P&gt;&lt;P&gt;ifort /nologo /FeVBATCH00.exe ExCarre.obj %LINK_FNL% OPENGL32.LIB glut32.lib GLU32.LIB &lt;/P&gt;&lt;P&gt;DEL ExCarre.obj&lt;/P&gt;&lt;P&gt;but it stays the same error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ExCarre.obj : error LNK2019: unresolved external symbol glutInit referenced in function main&lt;/P&gt;&lt;P&gt;VBATCH00.exe : fatal error LNK1120: 18 unresolved external&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2010 08:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824583#M49474</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-09-14T08:49:51Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824584#M49475</link>
      <description>You are doing mixed-language programming, because you are calling C functions in the GLUT libraries in your Fortran code. &lt;BR /&gt;&lt;BR /&gt;There is an entire chapter on mixed-language programming in the IFort User Guide, which will help you.&lt;BR /&gt;&lt;BR /&gt;Three main reasons why you cannot simply compile C code using CL.exe and Fortran code with IFort and link the .obj files: &lt;BR /&gt;&lt;BR /&gt;(i) the name decoration: by default, the Fortran code expects "_GLUTINIT", but the library provides "glutInit"; there are compiler and linker switches to help in this regard; Fortran-2003 has C Interoperability features.&lt;BR /&gt;&lt;BR /&gt;(ii) care is needed to map C function argument expectations to Fortran types, especially strings; again, the C Interoperability in Fortran-2003 is there to help.&lt;BR /&gt;&lt;BR /&gt;(iii) the default convention for passing arguments is, in a nutshell, by value in C and by reference in Fortran, but details are OS- and compiler-dependent.&lt;BR /&gt;&lt;BR /&gt;If the rules of mixed-language programming are not followed correctly, you may not be able to compile and link, or, worse, you may produce an .EXE file "without any errors" but it will crash when run. &lt;BR /&gt;&lt;BR /&gt;What makes mixed language programming a bit of a challenge for the beginner is that there are many ways of accomplishing the task.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Sep 2010 12:25:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824584#M49475</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-09-14T12:25:02Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824585#M49476</link>
      <description>Thank you again.&lt;BR /&gt;The mixed language programming isn't  problem for us because we already succeeded in building executables containing both fortran anc C and even C++ programs. &lt;BR /&gt;C and C++ programs are compiled with cl, fortran programs are compiled with intel fortran, and the whole application is builded with intel fortran.&lt;BR /&gt;Now if we want to use new feature contained in the opengl libraries, we succeeded to make object files from c++ programs linked to opengl functions, but when building the whole application with intel fortran we find the errors mentionned above: unresolved external symbols. So, we guess that in the build instructions using ifort, there is a missing link to the opengl library or something like that. But programming in mixed-language does not constitue a problem itself.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Sep 2010 14:16:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824585#M49476</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-09-14T14:16:48Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824586#M49477</link>
      <description>Still, it might be a useful precaution to run DUMPBIN /SYMBOLS /OUT to verify that the symbols match exactly. You can use FIND to search the output files. Easiest to start with static libraries, if you have them.</description>
      <pubDate>Tue, 14 Sep 2010 20:51:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824586#M49477</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2010-09-14T20:51:22Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824587#M49478</link>
      <description>excuse me Martyn but i didn't get what you mean. what do you mean by running this instruction? what output files you are referring to ?&lt;BR /&gt;wouldyou pleasegive more explanation?</description>
      <pubDate>Wed, 15 Sep 2010 10:31:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824587#M49478</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-09-15T10:31:54Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824588#M49479</link>
      <description>Martyn is pointing out that you could use dumpbin, or other similar utilities, to examine your .obj files and see the actual spelling of the linkage symbols, in case you have a discrepancy between languages. You could resolve such a discrepancy by using iso_c_binding, or by any of the legacy methods, including changing the spelling of your C function name. This also would help you catch a missed extern "C".</description>
      <pubDate>Wed, 15 Sep 2010 13:15:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824588#M49479</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-09-15T13:15:50Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824589#M49480</link>
      <description>Your example is rather simple, since only one object file and one library file are of concern.&lt;BR /&gt;&lt;BR /&gt; dumpbin /symbols ExCarre.obj | find /i "glutinit"&lt;BR /&gt;&lt;BR /&gt;will show the unsatisfied external symbol, which will be "glutinit" with, perhaps, some changes in case and added underscores.&lt;BR /&gt;&lt;BR /&gt;Similarly,&lt;BR /&gt;&lt;BR /&gt; dumpbin /symbols glut32.lib | find /i "glutinit"&lt;BR /&gt;&lt;BR /&gt;will show the function entry point in the library glut32.lib. If the two versions of "glutinit" do not match as to case and underscores, you may follow Tim's advice (i.e., using suitable name decoration, or using Fortran 2003 interoperability features).&lt;BR /&gt;&lt;BR /&gt;However, I note that in your example neither Fortran nor IMSL may be required for linking, since ExCarre.obj was compiled from a C++ source and may contain calls only to GLUT/OpenGL routines.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Sep 2010 13:35:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824589#M49480</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-09-15T13:35:24Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824590#M49481</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;i have the same problem, please help me?</description>
      <pubDate>Tue, 21 Dec 2010 15:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824590#M49481</guid>
      <dc:creator>oswa</dc:creator>
      <dc:date>2010-12-21T15:53:29Z</dc:date>
    </item>
    <item>
      <title>problem of compilation with intel fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824591#M49482</link>
      <description>A number of suggestions and recommendations were given by various people in this thread. It is customary for the original poster (you) to try out these suggestions, or to provide a cogent statement as to why the suggestions and recommendations are not acceptable. Failing that, there is nothing new to say about this "problem".&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2010 17:05:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-of-compilation-with-intel-fortran/m-p/824591#M49482</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-12-21T17:05:53Z</dc:date>
    </item>
  </channel>
</rss>

