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

work in the WASM compilation #1

Open
ismaelfaro opened this issue Dec 26, 2023 · 0 comments
Open

work in the WASM compilation #1

ismaelfaro opened this issue Dec 26, 2023 · 0 comments
Labels
bug Something isn't working Other

Comments

@ismaelfaro
Copy link
Owner

In this moment when I try to cross compile this version to WASM I got error related with some issues in the support of the Math lib

rand/wyrand/z_wyrand.c.v:5:28: error: duplicate method `free`
    3 | // free should be called when the generator is no longer needed
    4 | @[unsafe]
    5 | pub fn (mut rng WyRandRNG) free() {
      |                            ~~~~
    6 |     unsafe { free(rng) }
    7 | }

And others

math/bits.js.v:6:1: error: expected `#define`, `#flag`, `#include`, `#insert` or `#pkgconfig` not res.val = Infinity
    4 |     mut res := 0.0
    5 |     if sign >= 0 {
    6 |         #res.val = Infinity
      | ~~~~~~~~~~~~~~~~~~~~
@ismaelfaro ismaelfaro added Other bug Something isn't working labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Other
Projects
None yet
Development

No branches or pull requests

1 participant