<?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: Help needed for compiling dll in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899378#M80466</link>
    <description>Did you mean to install the Itanium (IA-64) compiler? Windows X64 is supported by 64-bit Windows for AMD64/Intel64 and the AMD64/X64 SDK option for VS and the Intel64 ifort.&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Apr 2008 05:45:32 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2008-04-25T05:45:32Z</dc:date>
    <item>
      <title>Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899375#M80463</link>
      <description>hi everyone&lt;BR /&gt;&lt;BR /&gt;I am not a programmer and a complete newbie to programming. I used to work with matlab but my friend wanted to create the same controller in fortran so that he could convert it into dll and use it in another software. with some help i created the fortran file. but now i have the problem while compiling.&lt;BR /&gt;I use ifort command to compile.&lt;BR /&gt;&lt;BR /&gt;when i provide the command&lt;BR /&gt;&lt;BR /&gt;ifort /dll externalcontroller.f90&lt;BR /&gt;&lt;BR /&gt;it says link not found.&lt;BR /&gt;what am i supposed to do&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:27:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899375#M80463</guid>
      <dc:creator>kausi</dc:creator>
      <dc:date>2008-04-24T11:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899376#M80464</link>
      <description>Do you have Microsoft Visual C++ 2003, 2005 or 2008 installed? Did you use the "Fortran Build Environment" shortcut under "Start &amp;gt; All Programs &amp;gt; Intel Software Development Tools &amp;gt; Intel Fortran Compiler" to open the command prompt window? What is the complete output of the command window starting with the beginning and through the attempt to build the DLL?&lt;BR /&gt;&lt;BR /&gt;The command you show is the correct way, but something is wrong in your system configuration or the way you established the command environment.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:12:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899376#M80464</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-24T18:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899377#M80465</link>
      <description>i have microsoft visual c++ 2008 express edition installed. I did use the foltran build environment as you said .&lt;BR /&gt;&lt;BR /&gt;the following ids what i got&lt;BR /&gt;&lt;BR /&gt;C:F_Files&amp;gt;ifort externalcontroller.f90&lt;BR /&gt;Intel&lt;R&gt; Visual Fortran Compiler for applications running on IA-64, Version 10.1 &lt;BR /&gt; Build 20080312 Package ID: w_fc_p_10.1.021&lt;BR /&gt;Copyright &lt;C&gt; 1985-2008 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;ifort: error #10037: could not find ' link'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
C:F_Files&amp;gt;ifort /dll externalcontroller.f90&lt;BR /&gt;
Intel&lt;R&gt; Visual Fortran Compiler for applications running on IA-64, Version 10.1 &lt;BR /&gt;
 Build 20080312 Package ID: w_fc_p_10.1.021&lt;BR /&gt;
Copyright &lt;C&gt; 1985-2008 Intel Corporation. All rights reserved.&lt;BR /&gt;
&lt;BR /&gt;
ifort: error #10037: could not find ' link'&lt;BR /&gt;&lt;BR /&gt;&lt;/C&gt;&lt;/R&gt;&lt;/C&gt;&lt;/R&gt;</description>
      <pubDate>Fri, 25 Apr 2008 04:29:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899377#M80465</guid>
      <dc:creator>kausi</dc:creator>
      <dc:date>2008-04-25T04:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899378#M80466</link>
      <description>Did you mean to install the Itanium (IA-64) compiler? Windows X64 is supported by 64-bit Windows for AMD64/Intel64 and the AMD64/X64 SDK option for VS and the Intel64 ifort.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Apr 2008 05:45:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899378#M80466</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-04-25T05:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899379#M80467</link>
      <description>To add to what Tim says, Visual C++ Express Edition supports building IA-32 (32-bit) applications only. You will need to install and use the IA-32 Fortrtan compiler.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:45:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899379#M80467</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-25T12:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899380#M80468</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; Thank you for your advice.&lt;BR /&gt;&lt;BR /&gt;I tried it and it created a DLL. but now i have another issue. Thee dll created by i fort causes an error in the program i am trying to use.&lt;BR /&gt;&lt;BR /&gt;It says&lt;BR /&gt;Runtime error&lt;BR /&gt;&lt;BR /&gt;R6034&lt;BR /&gt;An application has made an attempt to load the C runtime library incorrectly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My fortran program for the dll is given below and i am trying to export DISCON as the dll file. &lt;BR /&gt;&lt;PRE&gt;! This is a very simple example of an external controller DLL written in FORTRAN which simply causes&lt;BR /&gt;! a step change in pitch position demand.&lt;BR /&gt;! If the pitch actuator cannot accept a pitch position demand, an error message is returned to Bladed.&lt;BR /&gt;! A simple example of logging output is also included.&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE DISCON (avrSWAP, aviFAIL, accINFILE, avcOUTNAME, avcMSG)&lt;BR /&gt;IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt;!Compiler specific: Tell the complier that this routine is the entry point for the DLL&lt;BR /&gt;!The next line is for the case of the Digital Visual Fortran compiler&lt;BR /&gt;!DEC$ ATTRIBUTES DLLEXPORT, ALIAS:'DISCON' :: DISCON&lt;BR /&gt;&lt;BR /&gt;!Arguments&lt;BR /&gt;REAL :: avrSWAP(*)&lt;BR /&gt;INTEGER :: aviFAIL&lt;BR /&gt;INTEGER*1 :: accINFILE(*), avcOUTNAME(*), avcMSG(*)&lt;BR /&gt;&lt;BR /&gt;!Other declarations&lt;BR /&gt;INTEGER :: iStatus&lt;BR /&gt;INTEGER, SAVE :: iDone&lt;BR /&gt;REAL, SAVE :: rPitchDemand&lt;BR /&gt;&lt;BR /&gt;CALL CHAR2INT(' ',avcMsg)&lt;BR /&gt;&lt;BR /&gt;iStatus = NINT(avrSwap(1))&lt;BR /&gt;!Initialise&lt;BR /&gt;IF (iStatus .EQ. 0) THEN&lt;BR /&gt;	!Initialise pitch demand to current pitch angle&lt;BR /&gt;	rPitchDemand = avrSWAP(4)&lt;BR /&gt;	!This is also where you could read in any user-defined data from accInFile&lt;BR /&gt;ENDIF&lt;BR /&gt;&lt;BR /&gt;!Return demanded variables&lt;BR /&gt;!Note: previous values can be used before they updated, to simulate a one-sample delay&lt;BR /&gt;IF (NINT(avrSwap(10)) .EQ. 0) THEN&lt;BR /&gt;	avrSWAP(42) = rPitchDemand&lt;BR /&gt;	avrSWAP(43) = rPitchDemand&lt;BR /&gt;	avrSWAP(44) = rPitchDemand&lt;BR /&gt;	avrSWAP(45) = rPitchDemand&lt;BR /&gt;ELSE&lt;BR /&gt;	CALL CHAR2INT('This simple DLL needs pitch position actuator',avcMsg)&lt;BR /&gt;	aviFail = -1&lt;BR /&gt;ENDIF&lt;BR /&gt;&lt;BR /&gt;!Main calculation&lt;BR /&gt;IF (aviFail &amp;gt;= 0) THEN&lt;BR /&gt;	!Just a 1-degree step change in pitch position demand at 10 seconds&lt;BR /&gt;	IF (iStatus .EQ. 0) iDone = 0&lt;BR /&gt;	IF (avrSWAP(2) .GE. 10.0 .AND. iDone .EQ. 0) THEN&lt;BR /&gt;		rPitchDemand = rPitchDemand  + 0.017453&lt;BR /&gt;		iDone = 1&lt;BR /&gt;	ENDIF&lt;BR /&gt;	!Logging output&lt;BR /&gt;	CALL CHAR2INT('Pitch demand:A;',avcOUTNAME)&lt;BR /&gt;	avrSWAP(NINT(avrSWAP(63))) = rPitchDemand&lt;BR /&gt;	avrSWAP(65) = 1.0&lt;BR /&gt;ENDIF&lt;BR /&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;!==============================================================================================&lt;BR /&gt;!==============================================================================================&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE CHAR2INT(accString,avi1Int)&lt;BR /&gt;IMPLICIT NONE&lt;BR /&gt;CHARACTER*(*) accString&lt;BR /&gt;INTEGER*1 avi1Int(*)&lt;BR /&gt;INTEGER I&lt;BR /&gt;DO I = 1,LEN_TRIM(accString)&lt;BR /&gt;	avi1Int(I) = ICHAR(accString(I:I))&lt;BR /&gt;ENDDO&lt;BR /&gt;avi1Int(LEN_TRIM(accString)+1) = 0&lt;BR /&gt;RETURN&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:38:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899380#M80468</guid>
      <dc:creator>kausi</dc:creator>
      <dc:date>2008-04-29T11:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899381#M80469</link>
      <description>I just saw the announcement of "the brand new Visual Studio Express Editions." It says clearly on the download web page C++ is for 32-bit native code only, as Steve said (unlike 2005 express). No wonder I had difficulty getting the earlier 2008 express to play with X64 SDK. Reminds me of Steve's favorite crack about my old home town.&lt;BR /&gt;As to the latest question, with 2005 Express, it was recommended to add the (32-bit) psdk to support making .dll. There are posts on microsoft forums suggesting that sdk components may have to be added to 2008 Express as well for this purpose.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Apr 2008 04:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899381#M80469</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-04-30T04:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899382#M80470</link>
      <description>VC++ 2008 Express does not require a separate PSDK.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:46:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899382#M80470</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-30T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for compiling dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899383#M80471</link>
      <description>kausi, how are you building this DLL (what options), and what type of program are you using it with? &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:48:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-needed-for-compiling-dll/m-p/899383#M80471</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-30T12:48:38Z</dc:date>
    </item>
  </channel>
</rss>

