#error: the linker needs one or more objects to link

1 messages · Page 1 of 1 (latest)

lost surge
#
install
└─ install waffle-httpmirror-linux-x86_64
   └─ zig build-exe waffle-httpmirror-linux-x86_64 ReleaseSafe x86_64-linux-gnu
      └─ zig build-lib dummy ReleaseSafe x86_64-linux-gnu failure
error: the linker needs one or more objects to link
Build Summary: 4/8 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install waffle-httpmirror-linux-x86_64 transitive failure
   └─ zig build-exe waffle-httpmirror-linux-x86_64 ReleaseSafe x86_64-linux-gnu transitive failure
      └─ zig build-lib dummy ReleaseSafe x86_64-linux-gnu failure
error: the following build command failed with exit code 1:
/home/meghan/zig-cache/o/2a2db282ba4e0d5c579e99434915ccb8/build /home/meghan/src/zig/build/stage3/bin/zig /run/media/meghan/dev/waffle/httpmirror /home/meghan/zig-cache /home/meghan/.cache/zig --seed 0xebba9ddb -Z1c955147c85e05e8 -Dmode=ReleaseSafe -j1 -freference-trace -Dtarget=x86_64-linux-gnu -Dtrace
left rock
#

means you never added any objects to the step

#

what does the build.zig look like?

lost surge
#

oh

#

okay thats fixable

left rock
#

to be clear the error itself happens because its literally called build-lib without anything

#

but that itself is a byproduct of not adding objects