undefined reference



Hello,

I'm using gtk+-2.2.4 on windows and I'm trying to compile
a simple (hello word like) app in a cygwin environement.

The following errors are returned :

$ gcc `pkg-config gtk+-2.0 --cflags` -mno-cygwin -mms-bitfields `pkg-config
gtk+-2
.0 --libs` -o test test.c
test.c: In function `main':
test.c:6: warning: passing arg 1 of `gtk_init_abi_check' makes pointer from
inte
ger without a cast
test.c:6: warning: passing arg 2 of `gtk_init_abi_check' from incompatible
point
er type
/cygdrive/c/DOCUME~1/d/LOCALS~1/Temp/ccvkuKe8.o(.text+0x44):test.c:
undefined re
ference to `_gtk_init_abi_check'
/cygdrive/c/DOCUME~1/d/LOCALS~1/Temp/ccvkuKe8.o(.text+0x50):test.c:
undefined re
ference to `_gtk_window_new'
/cygdrive/c/DOCUME~1/d/LOCALS~1/Temp/ccvkuKe8.o(.text+0x5e):test.c:
undefined re
ference to `_gtk_widget_show'
/cygdrive/c/DOCUME~1/d/LOCALS~1/Temp/ccvkuKe8.o(.text+0x63):test.c:
undefined re
ference to `_gtk_main'
collect2: ld returned 1 exit status
make: *** [test] Error 1

What am I doing wrong ?

Thanks





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]