Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

something wrong when I go build the example 'sourceview.go' #110

Open
cocotyty opened this Issue Sep 5, 2012 · 5 comments

Comments

Projects
None yet
2 participants

cocotyty commented Sep 5, 2012

go build sourceview.go

github.com/mattn/go-gtk/gtksourceview

1: error: 'gtk_source_view_get_draw_spaces' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in
1: error: 'GtkSourceDrawSpacesFlags' undeclared (first use in this function)
1: error: 'gtk_source_view_set_draw_spaces' undeclared (first use in this function)
1: error: 'gtk_source_language_manager_guess_language' undeclared (first use in this function)

Owner

mattn commented Sep 5, 2012

Do you have gtksourceview-dev?

cocotyty commented Sep 6, 2012

yes, i'm sure

i try to solve this problem myself,but failed;

the wrong now is:

/tmp/go-build145345704/github.com/mattn/go-gtk/gtksourceview/_obj/gtksourceview.cgo2.o: In function _cgo_9264a146f787_Cfunc_gtk_source_language_manager_guess_language': /go/src/pkg/github.com/mattn/go-gtk/gtksourceview/gtksourceview.go:266: undefined reference togtk_source_language_manager_guess_language'
/tmp/go-build145345704/github.com/mattn/go-gtk/gtksourceview/_obj/gtksourceview.cgo2.o: In function _cgo_9264a146f787_Cfunc_gtk_source_view_get_draw_spaces': ../../../../go/src/pkg/github.com/mattn/go-gtk/gtksourceview/gtksourceview.go:305: undefined reference togtk_source_view_get_draw_spaces'
/tmp/go-build145345704/github.com/mattn/go-gtk/gtksourceview/_obj/gtksourceview.cgo2.o: In function _cgo_9264a146f787_Cfunc_gtk_source_view_set_draw_spaces': ../../../../go/src/pkg/github.com/mattn/go-gtk/gtksourceview/gtksourceview.go:424: undefined reference togtk_source_view_set_draw_spaces'
collect2: ld return 1

cocotyty commented Sep 6, 2012

by the way,thank you for your go-gtk !
:)

Owner

mattn commented Sep 6, 2012

What version of gtk do you use?

cocotyty commented Sep 6, 2012

gtk2.0 gtk3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment