compiling GTK apps under cygwin
- From: Jan-Steinke gmx de
- To: gtk-app-devel-list gnome org
- Subject: compiling GTK apps under cygwin
- Date: Sun, 22 Jun 2003 17:00:10 +0200
Hi there,
I installed cygwin and GTK+
2.2.1 and wanted to compile a little example program:
****************************************************
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
GtkWidget *fenster;
gtk_init(&argc, &argv);
fenster = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(fenster), "destroy",
GTK_SIGNAL_FUNC(gtk_main_quit),NULL);
gtk_widget_show(fenster);
gtk_main();
return 0;
}
****************************************************
When I tried to compile it with "gcc 'pkg-config --cflags --libs gtk+-2.0' hello.c
-o
hello", I get some errors like:
hello.c:18:2: warning: no newline at end of file
/cygdrive/c/..../ccmGHn91.o(.text+0x4c):hello.c: undefined reference to
'_gtk_init_abi_check'
...
collect2: ld returned 1 exit status
*************************************************
What's wrong with it?
thanks,
Jan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]