Blog no. 05

In this blog, we will explore how to link a zig library statically and dynamically.

First lets create a library that contains a function my_add that adds two numbers. Note that instead of pub keyword which we used in previous blog, we will be using export keyword to decorate the my_add function.

// libraries__add.zig

export fn my_add(num1: i32, num2: i32) i32 {