# List of compilers on wiki page - up-to-date? complete?

**URL:** <https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377>\
**Category:** Developers\
**Created:** [July 3, 2020, 4:17pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377 "2020-07-03T16:17:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitzimorris](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mitzimorris/32/29_2.png) [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Post date:** [July 3, 2020, 4:17pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377/1 "2020-07-03T16:17:19Z")

</div>

CmdStan install instructions has link to the wiki page: [https://github.com/stan-dev/stan/wiki/Coding-Style-and-Idioms#supported-cpp-versions-and-compilers](https://github.com/stan-dev/stan/wiki/Coding-Style-and-Idioms#supported-cpp-versions-and-compilers)

is this information correct?

for the CmdStan guide we need a tldr; list of recommended compilers for users - is the following correct:

- Linux: g++ 4.9.3 or clang 6.0
- macOS: install XCode, use XCode version of clang
- Windows: we recommend g++ 8.1 (available with RTools 4.0); else g++ 4.9.3 (available with RTools 3.5).

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [July 3, 2020, 4:36pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377/2 "2020-07-03T16:36:07Z")

</div>

I think on Mac another option is to just install the command line tools with

```
// in the terminal
xcode-select --install

```

instead of the entire XCode application.

---

<div class="post-metadata">

**Author:** ![rok\_cesnovar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Post date:** [July 3, 2020, 5:08pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377/3 "2020-07-03T17:08:34Z")

</div>

That wiki needs a refresher but yes, the list of compilers we test with is still valid in general.

The list of tests that run and a lot of comments are not up-to-date. Made a note to update after [https://github.com/stan-dev/design-docs/pull/22](https://github.com/stan-dev/design-docs/pull/22)

The minimum is g++ 4.9.3 or clang 6.0 with the exception of Windows where clang is not supported.  
I think everything still runs for clang 5.0 or 4.0, but we test with 6.0 on Mac/Linux so we should encourage 6.0+ on Mac/Linux (latest version is 10.0).

clang or msvc on Windows do not work with Stan ATM, though we are very close with making clang work.

> [@mitzimorris](#):
>
> - Linux: g++ 4.9.3 or clang 6.0
> - macOS: install XCode, use XCode version of clang
> - Windows: we recommend g++ 8.1 (available with RTools 4.0); else g++ 4.9.3 (available with RTools 3.5).

I think this is great.

---

<div class="post-metadata">

**Author:** ![mitzimorris](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mitzimorris/32/29_2.png) [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Post date:** [July 3, 2020, 5:09pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377/4 "2020-07-03T17:09:34Z")

</div>

> [@jonah](#):
>
> another option is to just install the command line tools

it depends? just set a brand new iMac and it was necessary to do the full xcode install.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [July 3, 2020, 5:15pm UTC](https://discourse.mc-stan.org/t/list-of-compilers-on-wiki-page-up-to-date-complete/16377/5 "2020-07-03T17:15:28Z")

</div>

> [@mitzimorris](#):
>
> it depends? just set a brand new iMac and it was necessary to do the full xcode install.

Bummer, yeah I guess it depends then. At least at one point I was able to get it working on a laptop with just the command line tools and not all of xcode, but if there’s any chance it won’t work we should just recommend installing all of xcode.
