Dipc is a compiler that compile Dipperin C++ smart contract code to WebAssembly program.
- GCC 5.4+ or Clang 4.0+
- CMake 3.5+
- Git
- Python
Required: 16.04+
- Install Dependencies
sudo apt install build-essential cmake libz-dev libtinfo-dev
- Get Source Code
git clone https://github.com/dipperin/dipc.git
cd dipc
git submodule update --init --recursive
- Build Code
cd dipc
mkdir build && cd build
cmake ..
make && make install
Required: MinGW-W64 GCC-8.1.0
NOTES: MinGW and CMake must be installed in a directory without space.
- Get Source Code
git clone https://github.com/dipperin/dipc.git
cd dipc
git submodule update --init --recursive
- Build Code
cd dipc
mkdir build && cd build
cmake -G "MinGW Makefiles" .. -DCMAKE_INSTALL_PREFIX="C:/dipc.cdt" -DCMAKE_MAKE_PROGRAM=mingw32-make
mingw32-make && mingw32-make install
- Init a project
dipc-init -project example -bare
- Build contract
cd example
dipc-cpp -o example.wasm example.cpp -abigen
- Init CMake project
dipc-init -project cmake_example
-
Build contract
- Linux
cd cmake_example/build cmake ..
- Windows
Required:
- MinGW-W64 GCC-8.1.0
- CMake 3.5 or higher
cd cmake_example/build cmake .. -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=<cdt_install_dir>
You can find more guidelines for contract writing and deploying in the contract instruction.
GNU General Public License v3.0, see LICENSE