try to compile testgtk.c -> undefined reference: create_prop_editor

"calmar" <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <000d01c28353$5a27b0b0$1374a2d9@CALXP>
Hi,
 
calmar writes:
>> The compiling produces a object file, as far as I see, but it complaines 
>> about .undefined reference to 'create_prop_editor'.

>If you check the Makefile.am, you will notice:

>testgtk_SOURCES = \
>prop-editor.c \
>testgtk.c 

>I.e. testgtk is built from these two source files...

I see prop-editor is needed.
I think the object file is created properly for the testgtk, but during linking the errormessage 'pops up'.
So maybe I have not linked to the proper libraries?
I cant' see through here besides of this possible explanation :-(

What I made:

1. copy config.h.win32 to the source (testgtk.c) folder and renaming it to config.h

2. write a makefile like this:

CFLAGS = -Ic:/gtk/include -IC:\gtk\include\atk-1.0 -IC:\gtk\include\freetype2 -IC:\gtk\include\glib-2.0 -IC:\gtk\include\gtk-2.0 -IC:\gtk\include\pango-1.0 -IC:\gtk\include\libpng12 -IC:\gtk\lib\glib-2.0\include -IC:\gtk\lib\gtk-2.0\include

LFLAGS = -mwindows  -Lc:/gtk/lib -lpango-1.0 -lglib-2.0 -lintl -lgmodule-2.0 -lgobject-2.0 -lpangowin32-1.0 -lgdi32 -lgdk_pixbuf-2.0 -lm -latk-1.0 -lgdk-win32-2.0 -lgtk-win32-2.0 -luser32 -lgdi32 -lgthread-2.0 -lglib-2.0 -lpangoft2-1.0-0 -Wl,--subsystem,windows

CC = gcc -Wall -mno-cygwin -fnative-struct

ROOT=testgtk

$(ROOT).exe : $(ROOT).o
 $(CC) $? -o $@     $(LFLAGS) 2>&1

$(ROOT).o : $(ROOT).c
 $(CC) $? -o $@  -c    $(CFLAGS) 2>&1


3. execute the makefile with 'make'

--> got the error after a successfully testgtk.o file:
    undefined reference to 'create_prop_editor'


thanks for any hints

calmar

(PS: in the case Tor reads this: 'my' little program works fine with your new library (where you wanted testers). But besides of a bunch of buttons and labels in a scrolled-window, i have nothing special in the program and so there is not too much difference, so not much worth this/my 'test' maybe.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.