I want to compile helloworld.c from Gtk+ examples
in cygwin with gcc.
I have a makefile:
#####################################################################
CC = gcc
CFLAGS = -mno-cygwin -mpentium -fnative-struct
-mwindows
CCODE = -o helloworld.exe helloworld.c
CINCLUDE = -I /src/gtk+ -I /src/gdk -I /src/glib -I
/src/gtk+/gdk -I /src/
CLIB = -L /lib -lgdk-1.3 -lgtk-1.3 -lglib-1.3
-lgnu-intl -lpthread
#####################################################################
helloworld.exe: $(CC) $(CFLAGS) $(CCODE) $(CINCLUDE) $(CLIB) #####################################################################
And I have a output:
-------------------------------------------------------------------------------------------------------------------
/cygdrive/c/TEMP/ccT8nMC9.o(.text+0xb9):helloworld.c: undefined reference
to `gtk_init_abi_check'
collect2: ld returned 1 exit status make: *** [helloworld.exe] Error 1 ------------------------------------------------------------------------------------------------------------------
I think my paths, libs or headers are OK. What is
problem?
Thanks.
Vlado Rumanko.
|