TIDE
Languages

C++

Installing C++ compilers (GCC, G++, Clang) and build tools on Ubuntu in TIDE

C++

C++ is a powerful, high-performance general-purpose programming language widely used in systems programming, high-frequency trading, game engines, and performance-critical applications.

Installation

To compile and debug C++ code on Ubuntu, install build-essential (which includes gcc, g++, and make) along with clang, cmake, and gdb:

sudo apt update
sudo apt install -y build-essential g++ clang cmake ninja-build gdb

Verification

Verify that the compilers and tools are installed:

g++ --version
clang++ --version
cmake --version

Writing and Compiling Code

Create a file named main.cpp:

#include <iostream>

int main() {
    std::cout << "Hello, TIDE!" << std::endl;
    return 0;
}

Compiling with G++

g++ -O2 main.cpp -o hello_tide

Compiling with Clang++

clang++ -O2 main.cpp -o hello_tide

Running the Executable

./hello_tide

Official Resources

On this page