        </div>

        <div class="page-wrapper" tabindex="-1" role="main">
          <div class="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/cmdstan-guide/compiling_stan_programs.html#invoking-the-make-utility">view current version</a>.
</div>
<div id="compiling-a-stan-program" class="section level1" number="3">
<h1><span class="header-section-number">3</span> Compiling a Stan Program</h1>
<p>A Stan program must be in a 