Open cnchef opened 4 years ago
E:\go\src\github.com\mattn\go-gtk>make example cd _example/action && go build -x WORK=C:\Users\chyuan\AppData\Local\Temp\go-build376693694 cat "C:\Users\chyuan\AppData\Local\go-build\cc\ccdbf0d097beb9201e2bf33ddcf6ff1f615e9c279a9dbf738611979ef0cb841f-d" # internal
In file included from glib.go:5,
from _cgo_export.c:4:
E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
static void _g_thread_init(GThreadFunctions *vtable) {
^~
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111,
from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4,
from glib.go:5,
from _cgo_export.c:4:
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
struct _GThreadFunctions
^~~~~
In file included from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5:
E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
static void _g_thread_init(GThreadFunctions *vtable) {
^~
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111,
from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4,
from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5:
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
struct _GThreadFunctions
^~~~~
cgo-gcc-prolog: In function '_cgo_d563e2f75b38_Cfunc__g_thread_init':
cgo-gcc-prolog:192:3: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111,
from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4,
from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5:
C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
struct _GThreadFunctions
^~~~~
mkdir -p $WORK\b037\
cd E:\go\src\github.com\mattn\go-gtk\gtk
pkg-config --cflags -- gtk+-2.0
pkg-config --libs -- gtk+-2.0
CGO_LDFLAGS='"-g" "-O2" "-LC:/msys64/mingw64/lib" "-lgtk-win32-2.0" "-lgdk-win32-2.0" "-lgdi32" "-limm32" "-lshell32" "-lole32" "-luuid" "-lpangowin32-1.0" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdi32" "-lmsimg32" "-latk-1.0" "-lcairo" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl"' "C:\Go\pkg\tool\windows_amd64\cgo.exe" -objdir "$WORK\b037\" -importpath github.com/mattn/go-gtk/gtk -- -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw64/include/gtk-2.0 -IC:/msys64/mingw64/lib/gtk-2.0/include -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/fribidi -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/atk-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/lzo -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include/gdk-pixbuf-2.0 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -I "$WORK\b037\" -g -O2 "E:\go\src\github.com\mattn\go-gtk\gtk\gtk.go"
cd $WORK
gcc -fno-caret-diagnostics -c -x c - -o NUL || true
gcc -Qunused-arguments -c -x c - -o NUL || true
gcc -fdebug-prefix-map=a=b -c -x c - -o NUL || true
gcc -gno-record-gcc-switches -c -x c - -o NUL || true
cd $WORK\b037
TERM='dumb' gcc -I "E:\go\src\github.com\mattn\go-gtk\gtk" -m64 -mthreads -fmessage-length=0 "-fdebug-prefix-map=$WORK\b037=/tmp/go-build" -gno-record-gcc-switches -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw64/include/gtk-2.0 -IC:/msys64/mingw64/lib/gtk-2.0/include -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/fribidi -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/atk-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/lzo -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include/gdk-pixbuf-2.0 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -I "$WORK\b037\" -g -O2 -o "$WORK\b037\_x001.o" -c _cgo_export.c
TERM='dumb' gcc -I "E:\go\src\github.com\mattn\go-gtk\gtk" -m64 -mthreads -fmessage-length=0 "-fdebug-prefix-map=$WORK\b037=/tmp/go-build" -gno-record-gcc-switches -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw64/include/gtk-2.0 -IC:/msys64/mingw64/lib/gtk-2.0/include -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/fribidi -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/atk-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/lzo -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include/gdk-pixbuf-2.0 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -I "$WORK\b037\" -g -O2 -o "$WORK\b037\_x002.o" -c gtk.cgo2.c
TERM='dumb' gcc -I "E:\go\src\github.com\mattn\go-gtk\gtk" -m64 -mthreads -fmessage-length=0 "-fdebug-prefix-map=$WORK\b037=/tmp/go-build" -gno-record-gcc-switches -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw64/include/gtk-2.0 -IC:/msys64/mingw64/lib/gtk-2.0/include -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/fribidi -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/atk-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/lzo -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include/gdk-pixbuf-2.0 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -I "$WORK\b037\" -g -O2 -o "$WORK\b037\_cgo_main.o" -c _cgomain.c
cd E:\go\src\github.com\mattn\go-gtk\gtk
TERM='dumb' gcc -I "E:\go\src\github.com\mattn\go-gtk\gtk" -m64 -mthreads -fmessage-length=0 "-fdebug-prefix-map=$WORK\b037=/tmp/go-build" -gno-record-gcc-switches -o "$WORK\b037\_cgo.o" "$WORK\b037\_cgo_main.o" "$WORK\b037\_x001.o" "$WORK\b037\_x002.o" -g -O2 -LC:/msys64/mingw64/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -lgdi32 -limm32 -lshell32 -lole32 -luuid -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdi32 -lmsimg32 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
TERM='dumb' "C:\Go\pkg\tool\windowsamd64\cgo.exe" -dynpackage gtk -dynimport "$WORK\b037\_cgo.o" -dynout "$WORK\b037\_cgo_import.go"
cat >$WORK\b037\importcfg << 'EOF' # internal
packagefile fmt=C:\Go\pkg\windows_amd64\fmt.a packagefile github.com/mattn/go-gtk/gdk=C:\Users\chyuan\AppData\Local\go-build\be\bec6a3e75e5b835781c9c421e8cc8a277916d5ea874c840965d03c3dd5193639-d packagefile github.com/mattn/go-gtk/gdkpixbuf=C:\Users\chyuan\AppData\Local\go-build\78\786b6fc8bcd942ceee45c854e8cc69a4e3172b45390c443911c2b63a32a54f15-d packagefile github.com/mattn/go-gtk/gio=C:\Users\chyuan\AppData\Local\go-build\17\17682354146a691581487f523e9d36094a66c8d5e51c9efc733f86b89eba602d-d packagefile github.com/mattn/go-gtk/glib=C:\Users\chyuan\AppData\Local\go-build\31\31f98b595d1adc10e43ac58addb676758a6c403acab9f001dd7d981131cf42a7-d packagefile github.com/mattn/go-gtk/pango=C:\Users\chyuan\AppData\Local\go-build\50\50a42feaf7999ba1c1199cfa371d6d6a726eac227510bb3471b491bb5137777e-d packagefile github.com/mattn/go-pointer=C:\Users\chyuan\AppData\Local\go-build\a3\a3fc88afde02b970a1a0138a2abe66f0f4522504ebfde154a982cd10e70d0e2d-d packagefile log=C:\Go\pkg\windows_amd64\log.a packagefile reflect=C:\Go\pkg\windows_amd64\reflect.a packagefile runtime=C:\Go\pkg\windows_amd64\runtime.a packagefile strings=C:\Go\pkg\windows_amd64\strings.a packagefile runtime/cgo=C:\Go\pkg\windows_amd64\runtime\cgo.a packagefile syscall=C:\Go\pkg\windows_amd64\syscall.a EOF "C:\Go\pkg\tool\windowsamd64\compile.exe" -o "$WORK\b037\_pkg.a" -trimpath "$WORK\b037=>" -p github.com/mattn/go-gtk/gtk -buildid i1VodM2VPXFshrDMXpDO/i1VodM2VPXFshrDMXpDO -goversion go1.14.2 -D "" -importcfg "$WORK\b037\importcfg" -pack -c=4 "$WORK\b037\_cgo_gotypes.go" "$WORK\b037\gtk.cgo1.go" "$WORK\b037\_cgo_import.go"
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkobject.h:37,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwidget.h:36,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkcontainer.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkbin.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwindow.h:36,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkdialog.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:33,
from ....\gtk/gtk.go.h:4,
from gtk.go:8,
from _cgo_export.c:4:
C:/msys64/mingw64/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from C:/msys64/mingw64/include/glib-2.0/gobject/gobject.h:24,
from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:29,
from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32,
from ....\gtk/gtk.go.h:4,
from gtk.go:8,
from _cgo_export.c:4:
C:/msys64/mingw64/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
679 | {
| ^
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolitem.h:31,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:126,
from ....\gtk/gtk.go.h:4,
from gtk.go:8,
from _cgo_export.c:4:
C:/msys64/mingw64/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~
In file included from C:/msys64/mingw64/include/glib-2.0/glib/galloca.h:32,
from C:/msys64/mingw64/include/glib-2.0/glib.h:30,
from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:28,
from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32,
from ....\gtk/gtk.go.h:4,
from gtk.go:8,
from _cgo_export.c:4:
C:/msys64/mingw64/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkobject.h:37,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwidget.h:36,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkcontainer.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkbin.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwindow.h:36,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkdialog.h:35,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:33,
from ....\gtk/gtk.go.h:4,
from ....\gtk\gtk.go:8:
C:/msys64/mingw64/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from C:/msys64/mingw64/include/glib-2.0/gobject/gobject.h:24,
from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:29,
from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32,
from ....\gtk/gtk.go.h:4,
from ....\gtk\gtk.go:8:
C:/msys64/mingw64/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
679 | {
| ^
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolitem.h:31,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:126,
from ....\gtk/gtk.go.h:4,
from ....\gtk\gtk.go:8:
C:/msys64/mingw64/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~
In file included from C:/msys64/mingw64/include/glib-2.0/glib/galloca.h:32,
from C:/msys64/mingw64/include/glib-2.0/glib.h:30,
from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:28,
from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32,
from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32,
from ....\gtk/gtk.go.h:4,
from ....\gtk\gtk.go:8:
C:/msys64/mingw64/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~
....\gtk\gtk.go:4271:3: cannot type switch on non-interface value val (type string) make: *** [_example/example.mk:35: _example/action/action] Error 2
Hey bro, have you solved your problem? I have the same problem
# github.com/mattn/go-gtk/glib
In file included from glib.go:5,
from _cgo_export.c:4:
../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
183 | static void _g_thread_init(GThreadFunctions *vtable) {
| ^~~~~~
In file included from /usr/include/glib-2.0/glib.h:112,
from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go.h:4,
from glib.go:5,
from _cgo_export.c:4:
/usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
56 | struct _GThreadFunctions
| ^~~~~~~~~~~~~~~~~
# github.com/mattn/go-gtk/glib
In file included from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go:5:
../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
183 | static void _g_thread_init(GThreadFunctions *vtable) {
| ^~~~~~
In file included from /usr/include/glib-2.0/glib.h:112,
from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go.h:4,
from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go:5:
/usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
56 | struct _GThreadFunctions
| ^~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_1efdb3e50950_Cfunc__g_thread_init':
cgo-gcc-prolog:188:3: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib.h:112,
from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go.h:4,
from ../go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20230419095350-e099c1bf7abc/glib/glib.go:5:
/usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here
56 | struct _GThreadFunctions
| ^~~~~~~~~~~~~~~~~
execution environment: os: Windows 10 go: go version go1.14.2 windows/amd64 gtk: mingw-w64-x86_64-gtk2-2.24.32-6 mingw-w64-x86_64-gtk3-3.24.23-3
E:\go\src\github.com\mattn\go-gtk_example\demo>go build demo.go
github.com/mattn/go-gtk/glib
In file included from glib.go:5, from _cgo_export.c:4: E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] static void _g_thread_init(GThreadFunctions *vtable) { ^
~In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111, from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4, from glib.go:5, from _cgo_export.c:4: C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here struct _GThreadFunctions ^~~~~github.com/mattn/go-gtk/glib
In file included from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5: E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] static void _g_thread_init(GThreadFunctions *vtable) { ^
~In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111, from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4, from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5: C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here struct _GThreadFunctions ^~~~~ cgo-gcc-prolog: In function '_cgo_d563e2f75b38_Cfunc__g_thread_init': cgo-gcc-prolog:192:3: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:111, from E:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4, from E:\go\src\github.com\mattn\go-gtk\glib\glib.go:5: C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here struct _GThreadFunctions ^~~~~github.com/mattn/go-gtk/gtk
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkobject.h:37, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwidget.h:36, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkcontainer.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkbin.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwindow.h:36, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkdialog.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:33, from ....\gtk/gtk.go.h:4, from gtk.go:8, from _cgo_export.c:4: C:/msys64/mingw64/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from C:/msys64/mingw64/include/glib-2.0/gobject/gobject.h:24, from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:29, from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22, from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32, from ....\gtk/gtk.go.h:4, from gtk.go:8, from _cgo_export.c:4: C:/msys64/mingw64/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolitem.h:31, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolbutton.h:30, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:126, from ....\gtk/gtk.go.h:4, from gtk.go:8, from _cgo_export.c:4: C:/msys64/mingw64/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^
~~~ In file included from C:/msys64/mingw64/include/glib-2.0/glib/galloca.h:32, from C:/msys64/mingw64/include/glib-2.0/glib.h:30, from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:28, from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22, from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32, from ....\gtk/gtk.go.h:4, from gtk.go:8, from _cgo_export.c:4: C:/msys64/mingw64/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~github.com/mattn/go-gtk/gtk
In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkobject.h:37, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwidget.h:36, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkcontainer.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkbin.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkwindow.h:36, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkdialog.h:35, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:33, from ....\gtk/gtk.go.h:4, from ....\gtk\gtk.go:8: C:/msys64/mingw64/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from C:/msys64/mingw64/include/glib-2.0/gobject/gobject.h:24, from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:29, from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22, from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32, from ....\gtk/gtk.go.h:4, from ....\gtk\gtk.go:8: C:/msys64/mingw64/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ In file included from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolitem.h:31, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtktoolbutton.h:30, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:126, from ....\gtk/gtk.go.h:4, from ....\gtk\gtk.go:8: C:/msys64/mingw64/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^
~~~ In file included from C:/msys64/mingw64/include/glib-2.0/glib/galloca.h:32, from C:/msys64/mingw64/include/glib-2.0/glib.h:30, from C:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:28, from C:/msys64/mingw64/include/glib-2.0/glib-object.h:22, from C:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28, from C:/msys64/mingw64/include/glib-2.0/gio/gio.h:26, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from C:/msys64/mingw64/include/gtk-2.0/gdk/gdk.h:32, from C:/msys64/mingw64/include/gtk-2.0/gtk/gtk.h:32, from ....\gtk/gtk.go.h:4, from ....\gtk\gtk.go:8: C:/msys64/mingw64/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~github.com/mattn/go-gtk/gtk
....\gtk\gtk.go:4271:3: cannot type switch on non-interface value val (type string)