Open czxichen opened 9 years ago
you moved gtk.2.0 directory into D:\
? so you need to update gtk+-2.0.pc
to refer d:/gtk.2.0/...
.
it should work if you replace prefix
as full-path.
gtk+-2.0.pc Absolute path :D:\gtk.2.0\lib\pkgconfig\gtk+-2.0.pc same error. Now ,i can't how to do ...
BTW, is it possible to build gtk app standalone written in C on the environment?
I don't know ,I am a rookie. i from china . The ability to express is bad. Thanks for your reply. I'm going to try to try it with Linux.
Hello i have same problem
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _gdk_display_get_default': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:19: undefined reference to
gdk_display_get_default'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_g_object_ref': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:58: undefined reference to
g_object_ref'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_color_parse': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:91: undefined reference to
gdk_color_parse'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function `_cgo_1fcf25d12d81_Cfunc_gdk_colormap_alloc_color':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:108: undefined reference to
gdk_colormap_alloc_color' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_cursor_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:122: undefined reference to
gdk_cursor_new' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_arc':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:142: undefined reference to
gdk_draw_arc' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_drawable':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:159: undefined reference to
gdk_draw_drawable' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_layout':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:172: undefined reference to
gdk_draw_layout' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_line':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:186: undefined reference to
gdk_draw_line' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_pixbuf':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:207: undefined reference to
gdk_draw_pixbuf' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_rectangle':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:235: undefined reference to
gdk_draw_rectangle' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_string':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:249: undefined reference to
gdk_draw_string' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_font_load':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:269: undefined reference to
gdk_font_load' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_fontset_load':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:282: undefined reference to
gdk_fontset_load' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_get_colormap':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:295: undefined reference to
gdk_gc_get_colormap' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:308: undefined reference to
gdk_gc_new' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_pixmap_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:375: undefined reference to
gdk_pixmap_new' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_screen_height':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:388: undefined reference to
gdk_screen_height' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_screen_width':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:401: undefined reference to
gdk_screen_width' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_window_get_pointer':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:444: undefined reference to
gdk_window_get_pointer' C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
toGdkWindow':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference to
gdk_window_object_get_type' E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference to
g_type_check_instance_cast'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_g_object_unref': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:69: undefined reference to
g_object_unref'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_beep': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:78: undefined reference to
gdk_beep'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_draw_point': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:219: undefined reference to
gdk_draw_point'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_flush': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:258: undefined reference to
gdk_flush'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_background': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:320: undefined reference to
gdk_gc_set_background'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_clip_rectangle' : E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:330: undefined reference to
gdk_gc_set_clip_rectangle'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_foreground': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:340: undefined reference to
gdk_gc_set_foreground'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_bg_color': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:350: undefined reference to
gdk_gc_set_rgb_bg_color'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_fg_color': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:360: undefined reference to
gdk_gc_set_rgb_fg_color'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_enter': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:412: undefined reference to
gdk_threads_enter'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_init': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:421: undefined reference to
gdk_threads_init'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_leave': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:430: undefined reference to
gdk_threads_leave'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_invalidate_rect ': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:458: undefined reference to
gdk_window_invalidate_rect'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_raise': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:467: undefined reference to
gdk_window_raise'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_show': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:476: undefined reference to
gdk_window_show'
C:\Users\GOPHI\AppData\Local\Temp\go-build062243899\github.com\mattn\go-gtk\gdk\
_obj\gdk_windows.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_win32_drawable _get_handle': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk_windows.go:39: undefined refere nce to
gdk_win32_drawable_get_handle'
collect2.exe: error: ld returned 1 exit status
how solved this problem?
do you have pkg-config
? then what output is:
pkg-config --cflags --libs gtk+-2.0
and
go env
i type pkg-config --cflags --libs gtk+-2.0 and it return : -mms-bitfields -IE:/gtk.2.0/include/gtk-2.0 -IE:/gtk.2.0/lib/gtk-2.0/include -IE :/gtk.2.0/include/atk-1.0 -IE:/gtk.2.0/include/cairo -IE:/gtk.2.0/include/pango- 1.0 -IE:/gtk.2.0/include/glib-2.0 -IE:/gtk.2.0/lib/glib-2.0/include -IE:/gtk.2.0 /include/freetype2 -IE:/gtk.2.0/include -IE:/gtk.2.0/include/libpng14 -LE:/gtk. 2.0/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lp angowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodu le-2.0 -lglib-2.0 -lintl
and i type go env , it return : set GOARCH=amd64 set GOBIN= set GOCHAR=6 set GOEXE=.exe set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=E:\workspace set GORACE= set GOROOT=E:\Go set GOTOOLDIR=E:\Go\pkg\tool\windows_amd64 set CC=gcc set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 set CXX=g++ set CGO_ENABLED=1
what version of gcc do you use?
and, do you set CC
environment variable?
i install TDM-GCC-64 , i don't know what version of gcc installed in my os no i don't set CC environment variable
what output of gcc --version
?
gcc (tdm64-1) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
could you please show me your go get -u -x github.com/mattn/go-gtk/gtk
?
NOTE: please specify -x
.
it return : cd E:\workspace\src\github.com\mattn\go-gtk git remote -v cd E:\workspace\src\github.com\mattn\go-gtk git symbolic-ref HEAD cd E:\workspace\src\github.com\mattn\go-gtk git pull --ff-only cd E:\workspace\src\github.com\mattn\go-gtk git show-ref cd E:\workspace\src\github.com\mattn\go-gtk git checkout master cd E:\workspace\src\github.com\mattn\go-gtk git remote -v cd E:\workspace\src\github.com\mattn\go-gtk git remote -v cd E:\workspace\src\github.com\mattn\go-gtk git remote -v cd E:\workspace\src\github.com\mattn\go-gtk git remote -v WORK=C:\Users\GOPHI\AppData\Local\Temp\go-build068075755 mkdir -p $WORK\github.com\mattn\go-gtk\gdk_obj\ mkdir -p $WORK\github.com\mattn\go-gtk\ cd E:\workspace\src\github.com\mattn\go-gtk\gdk pkg-config --cflags gdk-2.0 gthread-2.0 pkg-config --libs gdk-2.0 gthread-2.0 CGO_LDFLAGS="-g" "-O2" "-Le:/gtk.2.0/lib" "-lgdk-win32-2.0" "-lgdk_pixbuf-2.0" " -lpangowin32-1.0" "-lgdi32" "-lpangocairo-1.0" "-lpango-1.0" "-lcairo" "-lgobjec t-2.0" "-lgmodule-2.0" "-lgthread-2.0" "-lglib-2.0" "-lintl" "E:\Go\pkg\tool\ \windows_amd64\cgo.exe" -objdir "C:\Users\GOPHI\AppData\Local\Temp\go-bui ld068075755\github.com\mattn\go-gtk\gdk_obj\" -- -mms-bitfields -Ie:/gtk. 2.0/include/gtk-2.0 -Ie:/gtk.2.0/lib/gtk-2.0/include -Ie:/gtk.2.0/include/pango- 1.0 -Ie:/gtk.2.0/include/glib-2.0 -Ie:/gtk.2.0/lib/glib-2.0/include -Ie:/gtk.2.0 /include/cairo -Ie:/gtk.2.0/include/freetype2 -Ie:/gtk.2.0/include -Ie:/gtk.2.0/ include/libpng14 -I "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\ github.com\mattn\go-gtk\gdk_obj\" gdk.go gdk_windows.go "E:\Go\pkg\tool\windows_amd64\6c.exe" -F -V -w -trimpath "C:\Users\GOPHI\ \AppData\Local\Temp\go-build068075755" -I "C:\Users\GOPHI\AppData\Local\ Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\" -I "E:\Go\pkg \windows_amd64" -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\ github.com\mattn\go-gtk\gdk_obj_cgo_defun.6" -D GOOS_windows -D GOARCH_am d64 "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\matt n\go-gtk\gdk_obj_cgo_defun.c" gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -print-libgcc-file-name gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -mms-bitfields -Ie:/gtk.2.0/include/gtk-2.0 -Ie:/gtk.2.0/lib/gtk-2 .0/include -Ie:/gtk.2.0/include/pango-1.0 -Ie:/gtk.2.0/include/glib-2.0 -Ie:/gtk .2.0/lib/glib-2.0/include -Ie:/gtk.2.0/include/cairo -Ie:/gtk.2.0/include/freety pe2 -Ie:/gtk.2.0/include -Ie:/gtk.2.0/include/libpng14 -I "C:\Users\GOPHI\App Data\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\" -g -O2 -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\ mattn\go-gtk\gdk_obj_cgo_main.o" -c "C:\Users\GOPHI\AppData\Local\Tem p\go-build068075755\github.com\mattn\go-gtk\gdk_obj_cgo_main.c" gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -mms-bitfields -Ie:/gtk.2.0/include/gtk-2.0 -Ie:/gtk.2.0/lib/gtk-2 .0/include -Ie:/gtk.2.0/include/pango-1.0 -Ie:/gtk.2.0/include/glib-2.0 -Ie:/gtk .2.0/lib/glib-2.0/include -Ie:/gtk.2.0/include/cairo -Ie:/gtk.2.0/include/freety pe2 -Ie:/gtk.2.0/include -Ie:/gtk.2.0/include/libpng14 -I "C:\Users\GOPHI\App Data\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\" -g -O2 -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\ mattn\go-gtk\gdk_obj_cgo_export.o" -c "C:\Users\GOPHI\AppData\Local\T emp\go-build068075755\github.com\mattn\go-gtk\gdk_obj_cgo_export.c" gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -mms-bitfields -Ie:/gtk.2.0/include/gtk-2.0 -Ie:/gtk.2.0/lib/gtk-2 .0/include -Ie:/gtk.2.0/include/pango-1.0 -Ie:/gtk.2.0/include/glib-2.0 -Ie:/gtk .2.0/lib/glib-2.0/include -Ie:/gtk.2.0/include/cairo -Ie:/gtk.2.0/include/freety pe2 -Ie:/gtk.2.0/include -Ie:/gtk.2.0/include/libpng14 -I "C:\Users\GOPHI\App Data\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\" -g -O2 -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\ mattn\go-gtk\gdk_obj\gdk.cgo2.o" -c "C:\Users\GOPHI\AppData\Local\Temp \go-build068075755\github.com\mattn\go-gtk\gdk_obj\gdk.cgo2.c" gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -mms-bitfields -Ie:/gtk.2.0/include/gtk-2.0 -Ie:/gtk.2.0/lib/gtk-2 .0/include -Ie:/gtk.2.0/include/pango-1.0 -Ie:/gtk.2.0/include/glib-2.0 -Ie:/gtk .2.0/lib/glib-2.0/include -Ie:/gtk.2.0/include/cairo -Ie:/gtk.2.0/include/freety pe2 -Ie:/gtk.2.0/include -Ie:/gtk.2.0/include/libpng14 -I "C:\Users\GOPHI\App Data\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\" -g -O2 -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\ mattn\go-gtk\gdk_obj\gdk_windows.cgo2.o" -c "C:\Users\GOPHI\AppData\Loc al\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\gdkwindows.c go2.c" gcc -I "E:\workspace\src\github.com\mattn\go-gtk\gdk" -m64 -mthreads -fmes sage-length=0 -o "C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\git hub.com\mattn\go-gtk\gdk_obj_cgo.o" "C:\Users\GOPHI\AppData\Local\T emp\go-build068075755\github.com\mattn\go-gtk\gdk_obj_cgo_main.o" "C:\ Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk \gdk_obj_cgoexport.o" "C:\Users\GOPHI\AppData\Local\Temp\go-build068 075755\github.com\mattn\go-gtk\gdk_obj\gdk.cgo2.o" "C:\Users\GOPHI\App Data\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk_obj\gdk windows.cgo2.o" -g -O2 -Le:/gtk.2.0/lib -lgdk-win32-2.0 -lgdk_pixbuf-2.0 -lpango win32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2 .0 -lgthread-2.0 -lglib-2.0 -lintl
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _gdk_display_get_default': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:19: undefined reference to
gdk_display_get_default'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_g_object_ref': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:58: undefined reference to
g_object_ref'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_color_parse': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:91: undefined reference to
gdk_color_parse'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function `_cgo_1fcf25d12d81_Cfunc_gdk_colormap_alloc_color':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:108: undefined reference to
gdk_colormap_alloc_color' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_cursor_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:122: undefined reference to
gdk_cursor_new' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_arc':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:142: undefined reference to
gdk_draw_arc' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_drawable':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:159: undefined reference to
gdk_draw_drawable' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_layout':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:172: undefined reference to
gdk_draw_layout' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_line':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:186: undefined reference to
gdk_draw_line' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_pixbuf':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:207: undefined reference to
gdk_draw_pixbuf' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_rectangle':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:235: undefined reference to
gdk_draw_rectangle' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_string':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:249: undefined reference to
gdk_draw_string' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_font_load':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:269: undefined reference to
gdk_font_load' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_fontset_load':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:282: undefined reference to
gdk_fontset_load' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_get_colormap':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:295: undefined reference to
gdk_gc_get_colormap' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:308: undefined reference to
gdk_gc_new' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_pixmap_new':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:375: undefined reference to
gdk_pixmap_new' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_screen_height':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:388: undefined reference to
gdk_screen_height' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_screen_width':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:401: undefined reference to
gdk_screen_width' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_window_get_pointer':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:444: undefined reference to
gdk_window_get_pointer' C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\ _obj\gdk.cgo2.o: In function
toGdkWindow':
E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference to
gdk_window_object_get_type' E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference to
g_type_check_instance_cast'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_g_object_unref': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:69: undefined reference to
g_object_unref'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_beep': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:78: undefined reference to
gdk_beep'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_draw_point': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:219: undefined reference to
gdk_draw_point'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_flush': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:258: undefined reference to
gdk_flush'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_background': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:320: undefined reference to
gdk_gc_set_background'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_clip_rectangle' : E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:330: undefined reference to
gdk_gc_set_clip_rectangle'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_foreground': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:340: undefined reference to
gdk_gc_set_foreground'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_bg_color': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:350: undefined reference to
gdk_gc_set_rgb_bg_color'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_fg_color': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:360: undefined reference to
gdk_gc_set_rgb_fg_color'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_enter': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:412: undefined reference to
gdk_threads_enter'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_init': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:421: undefined reference to
gdk_threads_init'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_threads_leave': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:430: undefined reference to
gdk_threads_leave'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_invalidate_rect ': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:458: undefined reference to
gdk_window_invalidate_rect'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_raise': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:467: undefined reference to
gdk_window_raise'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_window_show': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk.go:476: undefined reference to
gdk_window_show'
C:\Users\GOPHI\AppData\Local\Temp\go-build068075755\github.com\mattn\go-gtk\gdk\
_obj\gdk_windows.cgo2.o: In function _cgo_1fcf25d12d81_Cfunc_gdk_win32_drawable _get_handle': E:/workspace/src/github.com/mattn/go-gtk/gdk/gdk_windows.go:39: undefined refere nce to
gdk_win32_drawable_get_handle'
collect2.exe: error: ld returned 1 exit status
one more please. go version
.
go version go1.4.2 windows/amd64
Why you link 32bit libs on 64bit OS?
which library? please give me libs for 64 bit !!!
please give me libs for 64 bit !!!
please install http://www.gtk.org/download/win64.php instead of http://www.gtk.org/download/win32.php
GTK+ 2.x or GTK+ 3.x ?
i check last downloaded gtk . i install gtk for 64 bit ! i'm not use gkt 32 bit
which is go 32/64?
go 64
https://github.com/mattn/go-gtk/issues/219
he seems to be possible to build go-gtk on win64.
i see it , my code is ok they don't need to fix because is latest version
go-gtk is very fun and powerful . i decide used it but still i have problem :( do you can record tutorial video for install go-gtk on windows? tutorial video is very useful
C:\Users\czxichen>go get github.com/mattn/go-gtk/gtk
github.com/mattn/go-gtk/gdk
C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_gdk_display_get_default': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go.h:19: undefined reference to
gdk_display_getdefault' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_g_object_ref': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:58: undefined reference to
g_objectref' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_color_parse': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:91: undefined reference to
gdk_colorparse' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_colormap_alloc_color': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:108: undefined reference to
gdk_colormap_alloccolor' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_cursor_new': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:122: undefined reference to
gdk_cursornew' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_arc': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:142: undefined reference to
gdk_drawarc' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_drawable': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:159: undefined reference to
gdk_drawdrawable' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_layout': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:172: undefined reference to
gdk_drawlayout' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_line': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:186: undefined reference to
gdk_drawline' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_pixbuf': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:207: undefined reference to
gdk_drawpixbuf' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_rectangle': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:235: undefined reference to
gdk_drawrectangle' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_draw_string': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:249: undefined reference to
gdk_drawstring' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_font_load': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:269: undefined reference to
gdk_fontload' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_fontset_load': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:282: undefined reference to
gdk_fontsetload' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_gc_get_colormap': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:295: undefined reference to
gdk_gc_getcolormap' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_gc_new': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:308: undefined reference to
gdk_gcnew' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_pixmap_new': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:375: undefined reference to
gdk_pixmapnew' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_screen_height': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:388: undefined reference to
gdk_screenheight' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_screen_width': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:401: undefined reference to
gdk_screenwidth' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In function_cgo_1fcf25d12d81_Cfunc_gdk_window_get_pointer': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:444: undefined reference to
gdk_window_getpointer' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk obj\gdk.cgo2.o: In functiontoGdkWindow': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference to
gdk_window_object_get_type' D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go.h:15: undefined reference tog_type_check_instance_cast' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk\_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_g_object_unref': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:69: undefined reference tog_object_unref' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk\_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_beep': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:78: undefined reference togdk_beep' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_draw_point': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:219: undefined reference togdk_draw_point' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_flush': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:258: undefined reference togdk_flush' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_set_background': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:320: undefined reference togdk_gc_set_background' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_set_clip_rectangle':D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:330: undefined reference to
gdk_gc_set_clip_rectangle' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk\_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_set_foreground': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:340: undefined reference togdk_gc_set_foreground' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk\_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_bg_color': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:350: undefined reference togdk_gc_set_rgb_bg_color' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_gc_set_rgb_fg_color': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:360: undefined reference togdk_gc_set_rgb_fg_color' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_threads_enter': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:412: undefined reference togdk_threads_enter' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_threads_init': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:421: undefined reference togdk_threads_init' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_threads_leave': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:430: undefined reference togdk_threads_leave' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_window_invalidate_rect' : D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:458: undefined reference togdk_window_invalidate_rect' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_window_raise': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:467: undefined reference togdk_window_raise' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_window_show': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk.go:476: undefined reference togdk_window_show' C:\Users\czxichen\AppData\Local\Temp\go-build047132695\github.com\mattn\go-gtk\gdk_ obj\gdk_windows.cgo2.o: In function
_cgo_1fcf25d12d81_Cfunc_gdk_win32drawable get_handle': D:/go_source/src/github.com/mattn/go-gtk/gdk/gdk_windows.go:39: undefined refere nce to`gdk_win32_drawable_get_handle' collect2.exe: error: ld returned 1 exit status