-
Notifications
You must be signed in to change notification settings - Fork 10
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
Build failing when building on windows 11 #151
Comments
allain
changed the title
Build failing when building on windows 11 amd64
Build failing when building on windows 11
Mar 7, 2024
The windows static library is compiled based on mingw 12.2.0. Please confirm that your go version > 1.20.0 |
Same here but a little bit difference.
// main.go
package main
import (
"fmt"
"github.com/buke/quickjs-go"
)
func main() {
// Create a new runtime
rt := quickjs.NewRuntime()
defer rt.Close()
// Create a new context
ctx := rt.NewContext()
defer ctx.Close()
jsStr := `
function fib(n)
{
if (n <= 0)
return 0;
else if (n == 1)
return 1;
else
return fib(n - 1) + fib(n - 2);
}
fib(10)
`
// Compile the script to bytecode
buf, _ := ctx.Compile(jsStr)
// Create a new runtime
rt2 := quickjs.NewRuntime()
defer rt2.Close()
// Create a new context
ctx2 := rt2.NewContext()
defer ctx2.Close()
//Eval bytecode
result, _ := ctx2.EvalBytecode(buf)
fmt.Println(result.Int32())
}
|
I just build it successfully, here is my steps:
and the info
|
Closed
I can confirm that if we use ucrt64 we will build successfully |
thank you for your confirm , I going to close this issue. if have any question, please reopen it |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the error message I'm seeing.
If it helps I'm using mingw and this is the info I get from gcc:
Let me know if I can help with anything.
The text was updated successfully, but these errors were encountered: