<?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: Visual Fortran and C preprocessor cpp in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798553#M36497</link>
    <description>&lt;DIV&gt; Ok, this is probably a basic thing, but I can't locate the "Projects Option Box". Where is that?&lt;/DIV&gt;</description>
    <pubDate>Tue, 12 Oct 2004 21:46:18 GMT</pubDate>
    <dc:creator>brentpaul</dc:creator>
    <dc:date>2004-10-12T21:46:18Z</dc:date>
    <item>
      <title>Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798549#M36493</link>
      <description>Migrating Fortran source code from HPUX to the PC my source code uses cpp syntax for "#include" statements as well as "#if", "#ifdef", "#ifndef", etc.  In addition to DVF v6.0, I have Microsoft Visual Studio 6.0 w/ Visual C++ 6.0 installed on my PC.  Question: is there a way to invoke the C preprocessor, cpp, to expand source code prior to compulation using DVF?</description>
      <pubDate>Tue, 15 Jul 2003 02:56:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798549#M36493</guid>
      <dc:creator>johnrohner</dc:creator>
      <dc:date>2003-07-15T02:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798550#M36494</link>
      <description>Yes.  In Developer Studio, select Project..Settings..Fortran..Preprocessor..Enable FPP.  From the command line, use /fpp.  This is a Fortran-friendly version of cpp.  Note that macro expansion is disabled by default - you can enable it with /fpp:"/m"&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 15 Jul 2003 09:55:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798550#M36494</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-07-15T09:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798551#M36495</link>
      <description>&lt;DIV&gt;I just posted a similar problem to the message board. However, in the Compaq Visual Fortran version 6.6c there is no way to change the FPP to /fpp:"/m". How do you change it on that version? Thanks!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Brent&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2004 20:46:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798551#M36495</guid>
      <dc:creator>brentpaul</dc:creator>
      <dc:date>2004-10-12T20:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798552#M36496</link>
      <description>&lt;DIV&gt;You have to type in /fpp:"/m" in the Project Options box.&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2004 21:24:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798552#M36496</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-10-12T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798553#M36497</link>
      <description>&lt;DIV&gt; Ok, this is probably a basic thing, but I can't locate the "Projects Option Box". Where is that?&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2004 21:46:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798553#M36497</guid>
      <dc:creator>brentpaul</dc:creator>
      <dc:date>2004-10-12T21:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798554#M36498</link>
      <description>&lt;DIV&gt;Project..Settings..Fortran. Each of the settings pages has a text box Project Options where the equivalent command line options are displayed. You can edit this as needed.&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2004 22:03:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798554#M36498</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-10-12T22:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798555#M36499</link>
      <description>&lt;DIV&gt;Thanks. I found that. But it still doesn't work. I'm probably asking the wrong question. Here is what I have:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;const.h (This is a file with my #defines)&lt;/DIV&gt;
&lt;DIV&gt;const1.h&lt;/DIV&gt;
&lt;DIV&gt;const2.h&lt;/DIV&gt;
&lt;DIV&gt;A lot of .f90 files&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;How can I compile my code so that it automatically recognizes and substitutes my macros that are defined in the const.h, const1.h, or const2.h?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I do this now with a C preprocessor that I use before my fortran compiler. Thank you.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Brent&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Oct 2004 00:26:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798555#M36499</guid>
      <dc:creator>brentpaul</dc:creator>
      <dc:date>2004-10-13T00:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798556#M36500</link>
      <description>&lt;DIV&gt;Are you using INCLUDE to reference these .h files or #include? You must use #include otherwise the preprocessor won't see them.&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Oct 2004 00:41:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798556#M36500</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-10-13T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798557#M36501</link>
      <description>&lt;DIV&gt;Yes, I am using #include. Here are some snippets from the code:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;turb.f90:&lt;/DIV&gt;
&lt;DIV&gt;#include "const.h" (first line of code)&lt;/DIV&gt;
&lt;DIV&gt;.&lt;/DIV&gt;
&lt;DIV&gt;.&lt;/DIV&gt;
&lt;DIV&gt;.&lt;/DIV&gt;
&lt;DIV&gt;dtur = DISS_L*l + DISS_M * m (this is where I wanted a replacement from const.h)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;const.h:&lt;/DIV&gt;
&lt;DIV&gt;#define DISS_L 13.45454&lt;/DIV&gt;
&lt;DIV&gt;#define DISS_M 14.3452&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Oct 2004 00:46:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798557#M36501</guid>
      <dc:creator>brentpaul</dc:creator>
      <dc:date>2004-10-13T00:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798558#M36502</link>
      <description>&lt;DIV&gt;And you have /fpp:"/m" under Project Options for the project? It should work. If you need further help, write CVF support at vf-support@hp.com.&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Oct 2004 01:17:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798558#M36502</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-10-13T01:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798559#M36503</link>
      <description>&lt;DIV&gt; Ok, thank you for your help though!!!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Brent&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Oct 2004 01:20:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798559#M36503</guid>
      <dc:creator>brentpaul</dc:creator>
      <dc:date>2004-10-13T01:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798560#M36504</link>
      <description>&lt;DIV&gt;I am having the same problem. I have added /fpp:"/m" to my project settings. I have changed my include "file.h"to #include "file.h" and I still get the compilation error: &lt;/DIV&gt;
&lt;DIV&gt;Warning: Bad # preprocessor line&lt;BR /&gt;#define doit 952&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;running cvf6.6a&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Nov 2004 04:16:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798560#M36504</guid>
      <dc:creator>tedz</dc:creator>
      <dc:date>2004-11-24T04:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Fortran and C preprocessor cpp</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798561#M36505</link>
      <description>&lt;DIV&gt;Disregard my last post. Something was corrupted and effecting one file. I restarted everything from scratch and itseems to be working now.&lt;/DIV&gt;
&lt;DIV&gt;Thanks for info.&lt;/DIV&gt;
&lt;DIV&gt;Ted Z.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Nov 2004 06:08:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Fortran-and-C-preprocessor-cpp/m-p/798561#M36505</guid>
      <dc:creator>tedz</dc:creator>
      <dc:date>2004-11-24T06:08:37Z</dc:date>
    </item>
  </channel>
</rss>

