<?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: IA32/EM64T with VC++/IVF in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843876#M61845</link>
    <description>&lt;P&gt;The output from your example&lt;/P&gt;
&lt;P&gt;-out:t.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;t.obj&lt;BR /&gt;t.obj : error LNK2019: unresolved external symbol Sub referenced in function MAIN__&lt;BR /&gt;t.exe : fatal error LNK1120: 1 unresolved externals&lt;/P&gt;
&lt;P&gt;indicates that while it compiled it failed to link. A reasonable view is that the example is broken and demonstrates nothing other than it ought to be fixed.&lt;/P&gt;
&lt;P&gt;In&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/en-us/forums//topic/41796"&gt;http://software.intel.com/en-us/forums//topic/41796&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you state to the OP&lt;/P&gt;
&lt;P&gt;"Take off the alias attribute - you don't need it and it's incorrect on EM64T"&lt;/P&gt;
&lt;P&gt;and nothing changed for the OP with the intimation that he was confused, just like the guy from HP?&lt;/P&gt;
&lt;P&gt;In response to Jim D's suggestion&lt;/P&gt;
&lt;P&gt;"If ALIAS for leading _ is incorrect on EMT64 (&lt;EM&gt;sic&lt;/EM&gt; em64t) I am sure then that this is a common mistake. Therefore I would like to submit the suggestion that a compiler Information message be issued when ALIAS is use to declare an _'d alias"&lt;/P&gt;
&lt;P&gt;you state&lt;/P&gt;
&lt;P&gt;"I don't think that is appropriate. The assumption is that the user knows what the alias should be. We introduced the DECORATE attribute if all you want to do is change the "spelling" of the name, and I would recommend its use instead of including the decoration in the alias."&lt;/P&gt;
&lt;P&gt;So why not takethis advise to others and remove the Alias. I don't use the command line, I use VS. As I mentioned before Decorate, when used alone, with or without the MS syntax, spawns an error.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2007 19:10:36 GMT</pubDate>
    <dc:creator>g_f_thomas</dc:creator>
    <dc:date>2007-10-22T19:10:36Z</dc:date>
    <item>
      <title>IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843861#M61830</link>
      <description>&lt;P&gt;When I try to build an EM64T mixed language project from its IA32 it succeeds if IVF calls VC++ but not the other way round. Is this to be expected? I did a search on this but couldn't follow the subtleties involved. Do I need IC++ and some special release of the Platform SDK and to debug in IDB, or what?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2007 21:06:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843861#M61830</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-16T21:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843862#M61831</link>
      <description>Need more info. What version IVF? What version VC++? What goes wrong? &lt;BR /&gt;&lt;BR /&gt;In order to use C++ from Visual Studio, you need VS2005, and unless you have the Standard Edition, you must do a Custom Install and select "x64 Compiler and Tools" (or go back and "change" the VS2005 install later.)&lt;BR /&gt;&lt;BR /&gt;Assuming you have VS2005 (with the x64 support) and IVF10, there should be no problem building mixed-language solutions in VS05. You do not need a SDK nor do you need Intel C++ (though of course we'd love it if you did.)&lt;BR /&gt;&lt;BR /&gt;I've never seen a problem quite like you describe, so I need more data.&lt;BR /&gt;&lt;BR /&gt;If you're NOT using VS2005, then you have to build from the command line and install the Platform SDK to get its C++ compiler.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Oct 2007 01:24:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843862#M61831</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-17T01:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843863#M61832</link>
      <description>&lt;P&gt;I got it to work. It looks like the Alias attribute functions differently on ia32 and em64t platforms and that ivf10x64 regards Decorate as not being a valid attribute for DEC$.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2007 19:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843863#M61832</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-18T19:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843864#M61833</link>
      <description>ALIAS behaves exactly the same on both platforms, and DECORATE is accepted on both platforms. It is true that the standard decoration rules differ, however, in that most symbols are not decorated at all, so DECORATE would tend to have no effect on x64, but it is accepted (as is STDCALL which effects only name case and pass-by-value).&lt;BR /&gt;&lt;BR /&gt;Can you provide more details as to what you saw? &lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2007 20:34:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843864#M61833</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-18T20:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843865#M61834</link>
      <description>&lt;P&gt;On both ia32 and i64 (aka em64t) use of Decorate causes the compiler to issue the message:&lt;/P&gt;
&lt;P&gt;Error: Not a valid attribute for the DEC$ ATTRIBUTES directive. [DECORATE]&lt;BR /&gt;1&amp;gt;compilation aborted for ... (code 1)&lt;/P&gt;
&lt;P&gt;When ia32 and i64 build they dumpbin the symbols, _x and x, say, respectively and the Alias for ia32 would read&lt;/P&gt;
&lt;P&gt;Alias : '_x'&lt;/P&gt;
&lt;P&gt;and for i64 would read&lt;/P&gt;
&lt;P&gt;Alias :'x'&lt;/P&gt;
&lt;P&gt;In C++ the invocation would read&lt;/P&gt;
&lt;P&gt;x(...)&lt;/P&gt;
&lt;P&gt;whatever the platform. All of this is reproducible with IVF 10.0.027 in VS 2005 Pro (with all doodads, Platform SDK, SP1+) on XP Pro/SP2 and Vista U and a colleague confirms that i64 apps run on a live updated XP x64 2003 Server on an Intel processor.&lt;/P&gt;
&lt;P&gt;The varying behavior of Alias on i64 has been noted here &lt;/P&gt;
&lt;P&gt;&lt;A href="http://docs.hp.com/en/T1918-96029/ch01s03.html#cacccdcf"&gt;http://docs.hp.com/en/T1918-96029/ch01s03.html#cacccdcf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;on a non Microsoft OS.&lt;BR /&gt;&lt;BR /&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843865#M61834</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-19T16:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843866#M61835</link>
      <description>&lt;P&gt;On both ia32 and i64 (aka em64t) use of Decorate causes the compiler to issue the message:&lt;/P&gt;
&lt;P&gt;Error: Not a valid attribute for the DEC$ ATTRIBUTES directive. [DECORATE]&lt;BR /&gt;1&amp;gt;compilation aborted for ... (code 1)&lt;/P&gt;
&lt;P&gt;When ia32 and i64 build they dumpbin the symbols, _x and x, say, respectively and the Alias for ia32 would read&lt;/P&gt;
&lt;P&gt;Alias : '_x'&lt;/P&gt;
&lt;P&gt;and for i64 would read&lt;/P&gt;
&lt;P&gt;Alias :'x'&lt;/P&gt;
&lt;P&gt;In C++ the invocation would read&lt;/P&gt;
&lt;P&gt;x(...)&lt;/P&gt;
&lt;P&gt;whatever the platform. All of this is reproducible with IVF 10.0.027 in VS 2005 Pro (with all doodads, Platform SDK, SP1+) on XP Pro/SP2 and Vista U and a colleague confirms that i64 apps run on a live updated XP x64 2003 Server on an Intel processor.&lt;/P&gt;
&lt;P&gt;The varying behavior of Alias on i64 has been noted here &lt;/P&gt;
&lt;P&gt;&lt;A href="http://docs.hp.com/en/T1918-96029/ch01s03.html#cacccdcf"&gt;http://docs.hp.com/en/T1918-96029/ch01s03.html#cacccdcf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;on a non Microsoft OS.&lt;BR /&gt;&lt;BR /&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843866#M61835</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-19T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843867#M61836</link>
      <description>Example showing the DECORATE problem, please.&lt;BR /&gt;&lt;BR /&gt;I read that HP article but don't see how it is relevant. Yes, as I mentioned earlier, the default decoration rules are different for Windows on IA-32 and Intel 64. On Linux, the Fortran convention is that Fortran routines have a trailing underscore, which is what that HP article discusses.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:51:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843867#M61836</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-19T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843868#M61837</link>
      <description>&lt;P&gt;2:25:32 PM&lt;/P&gt;
&lt;P&gt;I've already pasted the VS output pane that IVF generates on use of Decorate. What do you get?&lt;/P&gt;
&lt;P&gt;HP'sstatement that that "Some experimentation with the alias form may be necessary as experience demonstrates neither form has always been both accepted and honored by every release of the Intel compilers" is equally applicable to inter ivf compiler inconsistencies for Windows 32 and 64. To boot, Decorate should be fixed or itswoolly treatment in the documentation revised.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2007 19:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843868#M61837</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-19T19:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843869#M61838</link>
      <description>I don't see that you included the source that generated that message. Here's an example I tried:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;F:MyProjects&amp;gt;type t.f90&lt;BR /&gt;program test&lt;BR /&gt;interface&lt;BR /&gt; subroutine sub (x)&lt;BR /&gt; !DEC$ ATTRIBUTES DECORATE,ALIAS:"Sub" :: sub&lt;BR /&gt; real x&lt;BR /&gt; end subroutine sub&lt;BR /&gt;end interface&lt;BR /&gt;&lt;BR /&gt;call sub(3.0)&lt;BR /&gt;&lt;BR /&gt;end&lt;BR /&gt;F:MyProjects&amp;gt;ifort t.f90&lt;BR /&gt;Intel Visual Fortran Compiler for applications running on Intel 64, Version 10.0 Build 20070613 Package ID: W_FC_C_10.0.026&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;Microsoft  Incremental Linker Version 8.00.50727.762&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;-out:t.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;t.obj&lt;BR /&gt;t.obj : error LNK2019: unresolved external symbol Sub referenced in function MAIN__&lt;BR /&gt;t.exe : fatal error LNK1120: 1 unresolved externals&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Note that the DECORATE attribute was accepted and that it had no effect, which is correct on Intel 64.&lt;BR /&gt;&lt;BR /&gt;I also do not agree with the HP text regarding ALIAS. The author of that text is confused.&lt;BR /&gt;&lt;BR /&gt;DECORATE has had some issues, especially when /iface was used, but I'm not aware of anything in the last year or so. The HP text did not mention DECORATE.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2007 19:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843869#M61838</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-19T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843870#M61839</link>
      <description>&lt;P&gt;The example you tried doesn't compile so to draw inference from it is simply wrong. Here's a sample that works:&lt;/P&gt;
&lt;P&gt;subroutine sub [Decorate, Alias:'_MySuB'](x)&lt;BR /&gt; real x[REFERENCE]&lt;BR /&gt; x = 2*x&lt;BR /&gt; return&lt;BR /&gt;end subroutine sub&lt;/P&gt;
&lt;P&gt;Since the thread deals with mixed language solutions where the Alias is required and the Decorate may or may not be, here is a C++ driver that statically links to the f95 'sub' which C++ wants to reference as 'MySub':&lt;/P&gt;
&lt;P&gt;#include &lt;STDIO.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;
&lt;P&gt;extern "C" void MySuB(float *x);&lt;BR /&gt;void main ();&lt;/P&gt;
&lt;P&gt;void main ()&lt;BR /&gt;{&lt;BR /&gt;float x = 2.5;&lt;BR /&gt;MySuB( &amp;amp;x);&lt;BR /&gt;printf("%f
", x);&lt;BR /&gt;} &lt;/P&gt;
&lt;P&gt;Tips:&lt;BR /&gt;1. include the _CRT_SECURE_NO_WARNINGS preprocessor define&lt;BR /&gt;2. link both the f95 and c++ against the same MT DLLs&lt;BR /&gt;3. don't autogenerate interfaces as these don't currently honor DEC$ attributes&lt;BR /&gt;4. otherwise accept all default settings&lt;/P&gt;
&lt;P&gt;If you play around with Decorate, Alias, and _MySub/MySub across platforms, one finds that when used alone, Decorate does nothing but cause the comiler to issue 'Error: Not a valid attribute for the DEC$ ATTRIBUTES directive' but in concert with Alias it obviates the keyboarding of _.&lt;/P&gt;
&lt;P&gt;How was &lt;A href="https://community.intel.com/en-us/forums//topic/41796"&gt;http://software.intel.com/en-us/forums//topic/41796&lt;/A&gt; resolved?&lt;/P&gt;
&lt;P&gt;Gerry &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 03:37:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843870#M61839</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T03:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843871#M61840</link>
      <description>Gerry, the example I gave certainly does compile. It didn't link only because I wanted to show what external symbol was used. You have not yet shown me an example where DECORATE is rejected by the compiler on Intel 64.&lt;BR /&gt;&lt;BR /&gt;I also recommend against using the Microsoft PowerStation square bracket syntax for attributes that MS didn't support, such as DECORATE. This is unsupported and may break without notice. If in fact the example you have (but have not shown) uses DECORATE in the MS square bracket syntax, then I recommend changing to the documented and supported syntax.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 12:52:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843871#M61840</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-22T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843872#M61841</link>
      <description>&lt;P&gt;If you can't verify for yourself that ivf produces the following output using the instructions provided (with or without MSFP [ ] style):&lt;/P&gt;&lt;FONT size="1"&gt;
&lt;P&gt;------ Rebuild started: Project: Decor2, Configuration: Debug|x64 ------&lt;/P&gt;
&lt;P&gt;Deleting intermediate files and output files for project 'Decor2', configuration 'Debug|x64'.&lt;/P&gt;
&lt;P&gt;Compiling with Intel Fortran Compiler 10.0.027 [Intel 64]...&lt;/P&gt;
&lt;P&gt;Test2.F90&lt;/P&gt;
&lt;P&gt;C:UsersOwnerDocumentsVisual Studio 2005ProjectsDecorDecorTest2.F90(2) : Error: Not a valid attribute for the DEC$ ATTRIBUTES directive. [DECORATE]&lt;/P&gt;
&lt;P&gt;compilation aborted for C:UsersOwnerDocumentsVisual Studio 2005ProjectsDecorDecorTest2.F90 (code 1)&lt;/P&gt;
&lt;P&gt;Build log written to "file://C:UsersOwnerDocumentsVisual Studio 2005ProjectsDecorDecor2x64DebugBuildLog.htm"&lt;/P&gt;
&lt;P&gt;Decor2 - 2 error(s), 0 warning(s)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;---------------------- Done ----------------------&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;&lt;FONT size="1"&gt;
&lt;P&gt;------ Rebuild started: Project: Decor2, Configuration: Debug|x64 ------&lt;/P&gt;
&lt;P&gt;Deleting intermediate files and output files for project 'Decor2', configuration 'Debug|x64'.&lt;/P&gt;
&lt;P&gt;Compiling with Intel Fortran Compiler 10.0.027 [Intel 64]...&lt;/P&gt;
&lt;P&gt;Test2.F90&lt;/P&gt;
&lt;P&gt;Creating library...&lt;/P&gt;
&lt;P&gt;Build log written to "file://C:UsersOwnerDocumentsVisual Studio 2005ProjectsDecorDecor2x64DebugBuildLog.htm"&lt;/P&gt;
&lt;P&gt;Decor2 - 0 error(s), 0 warning(s)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;---------------------- Done ----------------------&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;then I can't be of further help.&lt;/P&gt;
&lt;P&gt;Once again:&lt;/P&gt;
&lt;P&gt;How was &lt;A href="https://community.intel.com/en-us/forums//topic/41796"&gt;&lt;FONT color="#0860a8"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/forums//topic/41796" target="_blank"&gt;http://software.intel.com/en-us/forums//topic/41796&lt;/A&gt;&lt;/P&gt;&lt;/FONT&gt; resolved?&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Gerry &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 13:20:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843872#M61841</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843873#M61842</link>
      <description>You can certainly help - post the source for your test2.f90. You have not done that, as far as I can see. The only code you have posted compiles fine (as you said). Every example I throw at the EM64T compiler with DECORATE passes.&lt;BR /&gt;&lt;BR /&gt;As for the other thread, like this one, no actual example was provided (in that case, the C code.) My crystal ball is out for repairs.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 14:12:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843873#M61842</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-22T14:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843874#M61843</link>
      <description>&lt;P&gt;Test2.f90 or whatever you want to call it is&lt;/P&gt;
&lt;P&gt;subroutine sub [Decorate, Alias:'_MySuB'](x)&lt;BR /&gt; real x[REFERENCE]&lt;BR /&gt; x = 2*x&lt;BR /&gt; return&lt;BR /&gt;end subroutine sub&lt;/P&gt;
&lt;P&gt;as previously posted.&lt;/P&gt;
&lt;P&gt;I resent your repeated insinuation that I'm fabricating what ivf 10.0.027 issues on demand. If you're having such trouble verifying this fact why dont you check among your colleagues to see if anyone remembers wording the error message in question. BTW, the only code that you have shown to support your assertion was broken.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 15:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843874#M61843</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T15:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843875#M61844</link>
      <description>Again, the code I posted is NOT broken and it effectively demonstrates my position.&lt;BR /&gt;&lt;BR /&gt;Here's what I get with your test case:&lt;BR /&gt;&lt;BR /&gt;F:MyProjects&amp;gt;type t.f90&lt;BR /&gt;subroutine sub [Decorate, Alias:'_MySuB'](x)&lt;BR /&gt; real x[REFERENCE]&lt;BR /&gt; x = 2*x&lt;BR /&gt; return&lt;BR /&gt;end subroutine sub&lt;BR /&gt;F:MyProjects&amp;gt;ifort -c t.f90&lt;BR /&gt;Intel Visual Fortran Compiler for applications running on Intel 64, Version 10.0 Build 20070809 Package ID: W_FC_C_10.0.027&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F:MyProjects&amp;gt;&lt;BR /&gt;&lt;BR /&gt;As I commented earlier, this use of DECORATE with the MS syntax is not supported, but it seems to work at the present time. What switches are you specifying on the command line?&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 16:41:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843875#M61844</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-22T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843876#M61845</link>
      <description>&lt;P&gt;The output from your example&lt;/P&gt;
&lt;P&gt;-out:t.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;t.obj&lt;BR /&gt;t.obj : error LNK2019: unresolved external symbol Sub referenced in function MAIN__&lt;BR /&gt;t.exe : fatal error LNK1120: 1 unresolved externals&lt;/P&gt;
&lt;P&gt;indicates that while it compiled it failed to link. A reasonable view is that the example is broken and demonstrates nothing other than it ought to be fixed.&lt;/P&gt;
&lt;P&gt;In&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/en-us/forums//topic/41796"&gt;http://software.intel.com/en-us/forums//topic/41796&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you state to the OP&lt;/P&gt;
&lt;P&gt;"Take off the alias attribute - you don't need it and it's incorrect on EM64T"&lt;/P&gt;
&lt;P&gt;and nothing changed for the OP with the intimation that he was confused, just like the guy from HP?&lt;/P&gt;
&lt;P&gt;In response to Jim D's suggestion&lt;/P&gt;
&lt;P&gt;"If ALIAS for leading _ is incorrect on EMT64 (&lt;EM&gt;sic&lt;/EM&gt; em64t) I am sure then that this is a common mistake. Therefore I would like to submit the suggestion that a compiler Information message be issued when ALIAS is use to declare an _'d alias"&lt;/P&gt;
&lt;P&gt;you state&lt;/P&gt;
&lt;P&gt;"I don't think that is appropriate. The assumption is that the user knows what the alias should be. We introduced the DECORATE attribute if all you want to do is change the "spelling" of the name, and I would recommend its use instead of including the decoration in the alias."&lt;/P&gt;
&lt;P&gt;So why not takethis advise to others and remove the Alias. I don't use the command line, I use VS. As I mentioned before Decorate, when used alone, with or without the MS syntax, spawns an error.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843876#M61845</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843877#M61846</link>
      <description>Gerry,&lt;BR /&gt;&lt;BR /&gt;The example I gave fails to link deliberately. I used that as a convenience to display the external symbol generated by the compiler. Showing it another way would have been more complicated. I'm sorry you were confused by this. The example does demonstrate that no compiler message is generated for proper use of DECORATE, which was my intention.&lt;BR /&gt;&lt;BR /&gt;I have asked the developers to look at the compiler sources and they cannot find any way in which this message would be emitted. I don't doubt that you are seeing it, but there's something else in play that is not yet shown here. In VS, go to the Fortran -&amp;gt; Command Line property page and copy and paste the set of command options used. Or paste the build log showing the invocation of the compiler and the output. Even better would be to open an issue with Intel Premier Support and attach a ZIP of the project that is getting this error. I'd certainly like to see it.&lt;BR /&gt;&lt;BR /&gt;I'm not sure where you're going with the reference to the other thread. As I said earlier, no test case was provided so whatever the other poster's problem was, it related to something not shown. What that might be, I don't know, and I don't see that it is relevant to this discussion.&lt;BR /&gt;&lt;BR /&gt;It is my position that one should use DECORATE instead of including decoration in ALIAS. That's cross-platform portable and is why we created it. It works.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:28:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843877#M61846</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-22T19:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843878#M61847</link>
      <description>&lt;P&gt;Here's the file&lt;/P&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;subroutine&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; sub(x)&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#008000" size="2"&gt;!DEC$ ATTRIBUTES Decorate: 'MySub' :: sub&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;real&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; x&lt;P&gt;&lt;/P&gt;
&lt;P&gt;x = 2*x&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;P&gt;&lt;/P&gt;
&lt;P&gt;end subroutine&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; sub&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;The BuildLog is attached.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Gerry&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:58:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843878#M61847</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T19:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843879#M61848</link>
      <description>Ah, now I see. You misunderstand the syntax.&lt;BR /&gt;&lt;BR /&gt;DECORATE is not a substitute for ALIAS, it is a keyword all by itself that adds to it. What you want is:&lt;BR /&gt;&lt;BR /&gt;!DEC$ ATTRIBUTES DECORATE, ALIAS:'MySub' :: sub&lt;BR /&gt;&lt;BR /&gt;Now do you understand why I was insisting on seeing an actual test case?&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 20:17:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843879#M61848</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-10-22T20:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: IA32/EM64T with VC++/IVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843880#M61849</link>
      <description>&lt;P&gt;No I did not. In all of my postswith the exception of the last &lt;/P&gt;
&lt;P&gt;!DEC$ ATTRIBUTES DECORATE, ALIAS:'MySub' :: sub&lt;/P&gt;
&lt;P&gt;was used. Why was the last different? so that you would finally get it. At least twice I alluded to the use of DECORATE &lt;EM&gt;alone &lt;/EM&gt;as precipitating an error. The purpose ofDECORATE is to remove the need to type an underscore of the ALIAS'ed symbol across platforms.Contrary to what you claimed in the previous thread, both are required unless youwant to type the _ in Win32 and remember to omit it in Intel 64. I know which Iprefer as I abhor use of the underscore.&lt;/P&gt;
&lt;P&gt;To end on a more upbeat vain,EM64T is handy and easy to use for those of us who make do in a 32 bit world.&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;
&lt;P&gt;ps How does a compiler emit errors that no one has anticipated? &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 20:51:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IA32-EM64T-with-VC-IVF/m-p/843880#M61849</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-10-22T20:51:30Z</dc:date>
    </item>
  </channel>
</rss>

