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

Problems on Windows 10 #44

Open
ErdemTDU opened this issue Dec 6, 2023 · 4 comments
Open

Problems on Windows 10 #44

ErdemTDU opened this issue Dec 6, 2023 · 4 comments
Labels
question Further information is requested

Comments

@ErdemTDU
Copy link

ErdemTDU commented Dec 6, 2023

Hello,

While I am trying to use wasmedge sdk for windows 10, I got the error. Have you any suggestion for that? I have done the required steps for installation.

Thanks in advance!

@ErdemTDU ErdemTDU changed the title It is not working on Win10 Problems on Windows 10 Dec 6, 2023
@hydai hydai added the question Further information is requested label Dec 6, 2023
@hydai
Copy link
Member

hydai commented Dec 6, 2023

Hi @ErdemTDU
Please share the full log of the error and how to reproduce steps.

@ErdemTDU
Copy link
Author

ErdemTDU commented Dec 7, 2023

Hi @hydai,

I have tried the base example of your repo to see what happens in initial steps.

  1. Error is in different example
  • "go-link-3182996452\000023.o: in function `_cgo_fbad98d1796e_Cfunc_WasmEdge_VMValidate'"..........
  • /tmp/go-build/cgo-gcc-prolog:700: undefined reference to `__imp_WasmEdge_VMValidate'
    collect2.exe: error: ld returned 1 exit status

I have an issue for all linked libraries for go sdk thats why I can not compile my code.

  1. Error in fibo example:
    ...\wasmedge\ast.go:3:11: fatal error: wasmedge/wasmedge.h: No such file or directory
    // #include <wasmedge/wasmedge.h>
    ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.

Sometimes, .h can not be seen.

WasmEdge version: 0.13.4
Go-SDK: 0.13.4
Go version: 1.20.11

@hydai
Copy link
Member

hydai commented Dec 11, 2023

It looks like the this doesn't contain the windows related part:
https://github.com/second-state/WasmEdge-go/blob/master/wasmedge/cgo.go#L3-L6

Do you know how to link with CGO on the Windows platform?

@ErdemTDU
Copy link
Author

Hi @hydai,

I have detected the same issue, will check soon.

Thanks,

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

No branches or pull requests

2 participants