You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling an app for windows amd64 gives me this error below, I tested this on both Linux (Fedora 40) & Windows 10 in a VM:
$ CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -o windows-amd64.exe cmd/main.go
# github.com/diamondburned/gotk4/pkg/core/gbox
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:49:35: error: conflicting types for 'callbackDelete'; have 'void(GoUintptr)' {aka 'void(long long unsigned int)'}
box.go:6:14: note: previous declaration of 'callbackDelete' with type 'void(guintptr)' {aka 'void(long unsigned int)'}
_cgo_export.c:26:28: error: conflicting types for 'callbackDelete'; have 'void(GoUintptr)' {aka 'void(long long unsigned int)'}
26 | __declspec(dllexport) void callbackDelete(GoUintptr ptr)
| ^~~~~~~~~~~~~~
box.go:6:14: note: previous declaration of 'callbackDelete' with type 'void(guintptr)' {aka 'void(long unsigned int)'}
Compiling an app for windows amd64 gives me this error below, I tested this on both Linux (Fedora 40) & Windows 10 in a VM:
here's a simple test app that has the same error:
The text was updated successfully, but these errors were encountered: