No, I didn’t expect so, was just clarifying that I did make one modification to your example, but this is because of an unrelated linking issue.
My point being is that I don’t think your problem is related to your code or what you are doing in Zig, but something else in the environment. I apologize, I know this is not very helpful in narrowing it down, but it does show that your code runs normally outside of your environment.