git clone --depth=1 https://gcc.gnu.org/git/gcc.git SomeLocalDir
cd SerenityOS-Project-Dir/Ports/gcc ./build.sh
Build it.
cd SomeLocalDir ./configure --help ./configure \ --prefix=/gcc \ --disable-multilib \ --enable-languages=c++ \ --enable-stage1-languages=c++ \ --build=x86_64-linux-gnu \ --host=x86_64-linux-gnu \ --target=x86_64-linux-gnu
make -j8 make install
Use mingw64.
No gcc distribution.
Gcc is distributed to haiku os image, and it can be installed by pkgman too:
pkgman search gcc pkgman install gcc
apt install gcc
Use mingw64.
Many good editors can be used for writing c++ code.
Kakoune can be installed to SerenityOS, Haiku OS, Linux, Windows.
Featherpad can be installed to Haiku OS, Linux.
Check if the c++ compiler works.
Copy paste the following c++ code, and save as hello.cpp:
#include <iostream> int main() { std::cout << "Hello, c++!" << std::endl; }
Compile and run the c++ code:
g++ hello.cpp -std=c++26 -lgcc_s -o hello ./hello
It should output:
Hello, c++!
If the gcc c++ compiler can not compile c++ code, find and repair issues, or ask for help.
Sun Sep 6 02:02:48 AM UTC 2026
Back: c++ compilers
+
Powered by:
B2 Build
| boost quickbook
+
+