PrevUpHomeNext

SerenityOS: gcc [c++ compiler]


SerenityOS c++ compiler: gcc

Up: c++ compilers

SerenityOS c++ compiler

Install gcc c++ compiler port on serenityos.

SerenityOS: https://serenityos.org

GNU c++: https://gcc.gnu.org

Build and Run SerenityOS

Get serenityos code, build and run it.

Install gcc port

Install SerenityOS gcc port.

c++ Editor

SerenityOS Text Editor

Use SerenityOS Text Editor

Serenity System has its own text editor, just use it.

Kakoune c++ Editor

Kakoune is a console c++ code editor.

https://kakoune.org

You can install kakoune c++ editor to write c++.

Install serenityos kakoune port.

Check

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

Up: c++ compilers

cpp/c++

c++ std::exception:

std::cout.write(err.data(), err.size());

std::cout << std::endl;

caught:

  ===================================
  #  The c++ programming language.  #
  #                                 #
  #  Join c++ Discord: yZcauUAUyC   #
  #  Deck                           #
  ===================================

Home: cppfx.xyz


PrevUpHomeNext