SerenityOS c++ compiler: gcc
Install gcc c++ compiler port on serenityos.
SerenityOS: https://serenityos.org
Get serenityos code, build and run it.
Install SerenityOS gcc port.
Use SerenityOS Text Editor
Serenity System has its own text editor, just use it.
Kakoune is a console c++ code editor.
You can install kakoune c++ editor to write c++.
Install serenityos kakoune port.
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++23 -lgcc_s -o hello ./hello
It should output:
Hello, c++!
If the serenityos gcc c++ compiler can not compile c++ code, find and repair issues, or ask for help.
________________________________________
Written on Feb 17, 2025
c++ std::exception:
std::cout.write(err.data(), err.size());
std::cout << std::endl;
caught:
=================================== # The c++ programming language. # # # # Join c++ Discord: yZcauUAUyC # # Deck # ===================================