C++-Bibliotheksgenerator
Quellcode bereit zur Kompilierung unter Linux Mint (.dll für Windows oder .so für Linux).
Unten findest du den Code und die genauen Befehle für das Terminal. Du kannst auch alles als ZIP-Paket herunterladen und in deinem Ordner kompilieren.
Quellcode (mylibrary.cpp):
Genaue Befehle für das Terminal (Linux Mint)
Windows .dll erstellen (MinGW)
1. Installation des Compilers
sudo apt update && sudo apt install mingw-w64 -y
2. Datei kompilieren
x86_64-w64-mingw32-g++ -shared -o mylibrary.dll mylibrary.cpp
Linux .so erstellen (GCC)
1. Installation des Compilers
sudo apt update && sudo apt install build-essential -y
2. Datei kompilieren
g++ -shared -fPIC -o mylibrary.so mylibrary.cpp
