th3r00t / zig-mqtt

A build package for mqtt-c.
MIT License
0 stars 0 forks source link

addStaticLibrary member function expected 1 argument #1

Open th3r00t opened 10 months ago

th3r00t commented 10 months ago
Sdk.zig:11:18: error: member function expected 1 argument(s), found 2
    const lib = b.addStaticLibrary("mqtt", null);
                ~^~~~~~~~~~~~~~~~~
/nix/store/qvjmxx230bz6qymaxaqj9y813bbcpwdx-zig-0.12.0-dev.1830+779b8e259/lib/std/Build.zig:765:5: note: function declared here
pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *Step.Compile {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    build: /home/th3r00t/Projects/zmon/build.zig:28:2
th3r00t commented 10 months ago

b.addStaticLibrary now expects StaticLibraryOptions https://ziglang.org/documentation/master/std/#A;std:Build.StaticLibraryOptions