Hi 👋, I'm coalooball

Hello World

main.cpp

#include <iostream>

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

CMakeLists.txt

cmake_minimum_required(VERSION 3.10)

project(HelloWorld)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_executable(hello main.cpp)

Compiling

mkdir build
cd build

cmake ..

cmake --build .

./hello

Python built-in modules

在 Linux 上编译 7z.so

https://github.com/rikyoz/bit7z/issues/191

In the source code of 7-Zip, you go to the directory CPP/7zip/Bundles/Format7zF/, and from there, you run the command make -j -f ../../cmpl_gcc.mak (if you want to use GCC) or make -j -f ../../cmpl_clang.mak (if you wish to use Clang). After the build finishes, you will find the 7z.so in a subdirectory of CPP/7zip/Bundles/Format7zF/.

> cd $7ZIP_SRC/CPP/7zip/Bundles/Format7zF/
> make -j -f ../../cmpl_gcc.mak
...
> ls -lh b/g/7z.so
-rwxrwxrwx 1 rikyoz rikyoz 2.7M Feb 28 08:47 b/g/7z.so