title: Converting FORTRAN to C / C++
body: <p>As part of my Final Year Project, I need to convert some FORTRAN code into C or C++ (it doesn't matter which language as long as I can understand it, and I can understand C style languages).</p>
  
  <p>I have discovered f2c, a program that allegedly converts FORTRAN to C, and tried to install it, following instructions, by saving a makefile.vc file on my drive and then doing</p>
  
  <pre><code>copy makefile.vc makefile
  nmake
  </code></pre>
  
  <p>(here is the part of the README file about installing f2c that is included in the f2c <a href="http://www.netlib.org/f2c/" rel="noreferrer">download page</a>)</p>
  
  <blockquote>
    <p>To compile f2c on Linux or Unix
    systems, copy makefile.u to makefile,
    edit makefile if necessary (see the
    comments in it and below) and type
    "make" (or maybe "nmake", depending on
    your system).</p>
    
    <p>To compile f2c.exe on MS Windows
    systems with Microsoft Visual C++,</p>
    
    <p>copy makefile.vc makefile  nmake</p>
    
    <p>With other PC compilers, you may need
    to compile xsum.c with -DMSDOS (i.e.,
    with MSDOS #defined).</p>
    
    <p>If your compiler does not understand
    ANSI/ISO C syntax (i.e., if you have a
    K&amp;R C compiler), compile with
    -DKR_headers .</p>
    
    <p>On non-Unix systems where files have
    separate binary and text modes, you
    may need to "make xsumr.out" rather
    than "make xsum.out".</p>
  </blockquote>
  
  <p>I am running x64 bit version of Windows Vista and tried "nmake", but I get</p>
  
  <blockquote>
    <p>'nmake' is not recognised as an internal or external command, operable program or batch file.</p>
  </blockquote>
  
  <p>I downloaded Nmake15.exe after some searching but it doesn't work on x64 bit machines and apparently there is not version of it that does. So I downloaded the Windows SDK, after being told that would work, but it didn't change anything.</p>
  
  <p>Where have I gone wrong in all this, if I have, and is there any way of converting that FORTRAN code into C or C++?</p>