<?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: IF 7.1 projects not creating .lib files in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800806#M37568</link>
    <description>Does it really say MYFUNC@108?  That makes no sense to me. I would expect __imp__MYFUNC@4.  Why do you have braces after 'extern "C"'?  I'm not really a C++ expert but I've never seen that before.&lt;BR /&gt;&lt;BR /&gt;Note that for this to link, the C++ code needs to link to the export library created by the DLL build.&lt;BR /&gt;&lt;BR /&gt;I suggest you wrap this up in a ZIP file and submit a report to Intel Premier Support.  There's not enough here for me to know what is going wrong.  Be sure to include all files that can reproduce the problem.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Sat, 07 Jun 2003 00:42:24 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2003-06-07T00:42:24Z</dc:date>
    <item>
      <title>IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800801#M37563</link>
      <description>I am having a problem linking my program. I am using VC.NET 2003 and IF 7.1 with both C++ and Fortran projects. Each project is a Dynamic-link Library project. I have the settings for the Fortran linker to generate an *.lib file for my fortran projects.&lt;BR /&gt;&lt;BR /&gt;For Fortran projects, a .dll and .pdb file is created, but no .lib file.&lt;BR /&gt;&lt;BR /&gt;For C++ projects, a .dll, .pdb, .lib are all created.&lt;BR /&gt;&lt;BR /&gt;I need this .lib file for each project to link my solution. Does anyone know why this would happen??&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 29 May 2003 00:52:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800801#M37563</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-05-29T00:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800802#M37564</link>
      <description>Usually, it's because you haven't added an appropriate DLLEXPORT directive.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 29 May 2003 02:14:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800802#M37564</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-05-29T02:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800803#M37565</link>
      <description>I apologize I failed to mention that the .lib file is built fine when using Compaq Visual Fortran 6.6b to compile.</description>
      <pubDate>Thu, 29 May 2003 02:50:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800803#M37565</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-05-29T02:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800804#M37566</link>
      <description>Well, the answer is sort of the same.  The compiler needs to recognize a DLLEXPORT directive.  If you think the Intel compiler is not doing this properly, submit a support request (with sample) to Intel Premier Support.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 29 May 2003 02:53:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800804#M37566</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-05-29T02:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800805#M37567</link>
      <description>My project now produces a .lib file, but I get unresolved linker errors.&lt;BR /&gt;&lt;BR /&gt;Heres the fortran code I have:&lt;BR /&gt;&lt;BR /&gt;subroutine myfunc(param1)&lt;BR /&gt;!MS$ATTRIBUTES DLLEXPORT:: MYFUNC&lt;BR /&gt;&lt;BR /&gt;! some if statements and other code&lt;BR /&gt;&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;And in my C++ project that calls this function I have the following&lt;BR /&gt;&lt;BR /&gt;extern "C"&lt;BR /&gt;{&lt;BR /&gt;   void __declspec( dllimport ) __stdcall MYFUNC(float* param1);&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;double Cthick::Foo(double h, double w, int t, int s, int hd)&lt;BR /&gt;{&lt;BR /&gt;	float _param1 = 1000.f;&lt;BR /&gt;	MYFUNC(&amp;amp;_param1);&lt;BR /&gt;&lt;BR /&gt;	return param1/1000.f;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here is the error I get when linking:&lt;BR /&gt;error LNK2019: unresolved external symbol __imp__MYFUNC@108 referenced in function "public: static double __cdecl Cthick::Foo(double,double,int,int,int)" (?Foo@Cthick@@SANNNHHH@Z)&lt;BR /&gt;&lt;BR /&gt;I still do not understand why this works with CVF6.6B, but not IF7.1&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Jun 2003 00:13:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800805#M37567</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-06-07T00:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800806#M37568</link>
      <description>Does it really say MYFUNC@108?  That makes no sense to me. I would expect __imp__MYFUNC@4.  Why do you have braces after 'extern "C"'?  I'm not really a C++ expert but I've never seen that before.&lt;BR /&gt;&lt;BR /&gt;Note that for this to link, the C++ code needs to link to the export library created by the DLL build.&lt;BR /&gt;&lt;BR /&gt;I suggest you wrap this up in a ZIP file and submit a report to Intel Premier Support.  There's not enough here for me to know what is going wrong.  Be sure to include all files that can reproduce the problem.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 07 Jun 2003 00:42:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800806#M37568</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-06-07T00:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800807#M37569</link>
      <description>Ok, I think I have an idea of whats going on.&lt;BR /&gt;&lt;BR /&gt;Yes you were correct, it was MYFUNC@4&lt;BR /&gt;(My function really has 21 parameters hince 108, but i took it down to 1 just for simplicity here)&lt;BR /&gt;&lt;BR /&gt;Anyways..&lt;BR /&gt;&lt;BR /&gt;Back to the problem...&lt;BR /&gt;&lt;BR /&gt;I compiled with Intel 7.1 integrated into .NET2003 and I did a dumpbin /exports file.lib and it shows: &lt;BR /&gt;______________________&lt;BR /&gt;Dump of file file.lib&lt;BR /&gt;&lt;BR /&gt;File Type: LIBRARY&lt;BR /&gt;&lt;BR /&gt;     Exports&lt;BR /&gt;&lt;BR /&gt;       ordinal    name&lt;BR /&gt;&lt;BR /&gt;             1    _MYFUNC&lt;BR /&gt;__________________________&lt;BR /&gt;&lt;BR /&gt;Now.. when I compile with Compaq 6.6b and run a dumpbin I get:&lt;BR /&gt;Dump of file file.lib&lt;BR /&gt;&lt;BR /&gt;File Type: LIBRARY&lt;BR /&gt;&lt;BR /&gt;     Exports&lt;BR /&gt;&lt;BR /&gt;       ordinal    name&lt;BR /&gt;&lt;BR /&gt;             1    _MYFUNC@4&lt;BR /&gt;_________________________&lt;BR /&gt;&lt;BR /&gt;This happens with other functions as well.  It adds the underscore fine, but it's almost like Intel just is not putting the @4.&lt;BR /&gt;&lt;BR /&gt;So thats the reason why when I run with Intel it cant find _MYFUNC@4, now how can I fix this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(I tried using a def to export instead in both compag 6.6b and Intel 7.1 and the same thing happened)</description>
      <pubDate>Tue, 01 Jul 2003 23:34:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800807#M37569</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-07-01T23:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800808#M37570</link>
      <description>Intel Fortran and CVF use different default calling conventions.  Intel Fortran uses the C convention, where one does not put a @n on the name, and CVF uses STDCALL, where one does.  This in itself would not be responsible for not exporting the .lib file.&lt;BR /&gt;&lt;BR /&gt;But I now see at least part of the problem.  The C++ code uses __stdcall, which no longer matches the Fortran code if you build with Intel Fortran.  Remove the __stdcall.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 01 Jul 2003 23:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800808#M37570</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-07-01T23:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800809#M37571</link>
      <description>I was unaware of that!&lt;BR /&gt;&lt;BR /&gt;However my project does create a .lib file now, but the new problem is linking(see a couple posts up).&lt;BR /&gt;My C++ project cannot find _MYFUNC@4&lt;BR /&gt;&lt;BR /&gt;So since Intel has a different calling convention, do you think my problem could be how I call the function in my C++ file?&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help!&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 01 Jul 2003 23:46:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800809#M37571</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-07-01T23:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF 7.1 projects not creating .lib files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800810#M37572</link>
      <description>It compiles now!!!&lt;BR /&gt;&lt;BR /&gt;The problem was the way I called the function on the C++ side...&lt;BR /&gt;&lt;BR /&gt;I used int _CTHICKDLL __stdcall MYFUNC(params)&lt;BR /&gt;&lt;BR /&gt;all I had to do was remove the __stdcall.&lt;BR /&gt;&lt;BR /&gt;Again, thanks Steve for your help! This problem has been bugging me for a while!!&lt;BR /&gt;&lt;BR /&gt;Now.. I hope the program will run...</description>
      <pubDate>Wed, 02 Jul 2003 01:22:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IF-7-1-projects-not-creating-lib-files/m-p/800810#M37572</guid>
      <dc:creator>steveuk42</dc:creator>
      <dc:date>2003-07-02T01:22:30Z</dc:date>
    </item>
  </channel>
</rss>

