doc: clarify the need of compiler compatible with c++20

Very often someone appear in the #node-core slack
channel asking for guidance on this compilation error

PR-URL: https://github.com/nodejs/node/pull/59297
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rafael Gonzaga 2025-08-02 15:23:28 -03:00 committed by GitHub
parent 55b7d2890d
commit 9bc923ac63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,6 +272,11 @@ export CXX=g++-12
make -j4
```
> \[!IMPORTANT]
> If you face a compilation error during this process such as
> `error: no matching conversion for functional-style cast from 'unsigned int' to 'TypeIndex'`
> Make sure to use a `g++` or `clang` version compatible with C++20.
We can speed up the builds by using [Ninja](https://ninja-build.org/). For more
information, see
[Building Node.js with Ninja](doc/contributing/building-node-with-ninja.md).