Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: invalid builtin function: '@abs' #11

Open
zet23t opened this issue Dec 1, 2023 · 0 comments
Open

error: invalid builtin function: '@abs' #11

zet23t opened this issue Dec 1, 2023 · 0 comments

Comments

@zet23t
Copy link

zet23t commented Dec 1, 2023

I am new to zig and wanted to give the raylib examples a try. Compiling it with zig 0.11.0 I am getting this error here:

Build Summary: 3/8 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run raylib-zig-examples transitive failure
   ├─ zig build-exe raylib-zig-examples Debug native 1 errors
   └─ install transitive failure
      └─ install raylib-zig-examples transitive failure
         └─ zig build-exe raylib-zig-examples Debug native (+2 more reused dependencies)
src\examples\audio_stream\audio_stream.zig:102:17: error: invalid builtin function: '@abs'
                @abs(samples[i * music.stream.channels + channel]) * 5,

If I remove the @abs call, the compilation succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant