d:/go/bin/go.exe build [C:/Users/Administrator/src/project]
github.com/mattn/go-gtk/glib
In file included from glib.go:5,
from _cgo_export.c:4:
d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
183 | static void _g_thread_init(GThreadFunctions *vtable) {
| ^~
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:114,
from d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4:
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here
58 | struct _GThreadFunctions
| ^~~~~
github.com/mattn/go-gtk/glib
In file included from d:\go\src\github.com\mattn\go-gtk\glib\glib.go:5:
d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
183 | static void _g_thread_init(GThreadFunctions *vtable) {
| ^~
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:114,
from d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4:
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here
58 | struct _GThreadFunctions
| ^~~~~
cgo-gcc-prolog: In function '_cgo_314f9b9ac766_Cfunc__g_thread_init':
cgo-gcc-prolog:192:3: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here
58 | struct _GThreadFunctions
| ^~~~~
pkg-config --cflags -- gtk+-2.0
Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gtk+-2.0', required by 'virtual:world', not found pkg-config: exit status 1
pkg-config --cflags -- gdk-2.0 gthread-2.0
Package gdk-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gdk-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gdk-2.0', required by 'virtual:world', not found Package 'gthread-2.0', required by 'virtual:world', not found pkg-config: exit status 1 错误: 进程退出代码 2.
有疑问加站长微信联系(非本文作者))
