andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 129 forks source link

Windows: callback.go:8:10: fatal error: curl/curl.h: No such file or directory #82

Open BaseMax opened 1 year ago

BaseMax commented 1 year ago

Hi there, I am trying to build/run our program on a Windows Laptop machine.

go run main.go provider.go

# github.com/andelf/go-curl
..\go\pkg\mod\github.com\andelf\go-curl@v0.0.0-20200630032108-fd49ff24ed97\callback.go:8:10: fatal error: curl/curl.h: No such file or directory
8 | #include <curl/curl.h>
|          ^~~~~~~~~~~~~
compilation terminated.

go build .

# github.com/andelf/go-curl
..\go\pkg\mod\github.com\andelf\go-curl@v0.0.0-20200630032108-fd49ff24ed97\callback.go:8:10: fatal error: curl/curl.h: No such file or directory
8 | #include <curl/curl.h>
|          ^~~~~~~~~~~~~
compilation terminated.
hkey0 commented 9 months ago

Same error for me.