I am adding some code to a program and I want to have gtk in it. To compile I changed the make file. I added `pkg-config gtk+-2.0 --cflags --libs`to the -cflags and it works.
but when it comes to linking I get "....main.c:145: undefined reference to `gtk_init'"
Where should I add some instructions in the make file? If its there? LDFLAGS?
I am lost.
Last edited by kalleanka; 07-13-2006 at 06:19 AM.