I try to compile the following code under linux (Kubuntu 12.10) :
Code: Select all
ZetCode FreeBASIC GTK tutorial
'
' This program centers a window on
' the screen
'
' author Jan Bodnar
' last modified July 2010
' website www.zetcode.com
#include once "gtk/gtk.bi"
#define NULL 0
Dim As GtkWidget Ptr win
gtk_init(NULL, NULL)
win = gtk_window_new(GTK_WINDOW_TOPLEVEL)
gtk_window_set_title(GTK_WINDOW(win), "Center")
gtk_widget_set_size_request(win, 250, 150)
gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER)
g_signal_connect(G_OBJECT(win), "destroy", _
G_CALLBACK (@gtk_main_quit), NULL)
gtk_widget_show(win)
gtk_main()
END 0
When I compile I receive the following errors :
ld : ne peut trouver -lgtk-x11-2.0
ld : ne peut trouver -lgdk-x11-2.0
Any ideas on what I should do to get this code working ?
Many thanks for the help.
Philippe