Re: MakeFile for GTK2



You're trying to link against libraries, but you specified -c which means don't link.

Pablo Fischer wrote:
Ok.. last time Rich Gautier helped me with the creation of a MakeFile..
now I have another question :(:

How can I make a MakeFile for gtk2?.. I have this:

PREFIX  = /usr/local
SQLINC  = /usr/local/include/mysql
SQLLIB  = /usr/local/lib/mysql
LIBS    = -L/usr/lib -L/usr/local/lib -L$(SQLLIB) \
          -lmysqlclient -lm `gtk-config --libs`
ECFLAGS = $(CFLAGS) -Wall -I$(SQLINC) `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0`

OBJS    = Agregar.o Buscar.o Configuracion.o BuskaSoftware.o

all: $(OBJS)
        gcc -o BuskaSoft $(OBJS) $(LIBS) $(ECFLAGS)


But... I receive a lot lot of messages (anyway.. the app its compiled)
with each *.c file, like this:

gcc  -Wall -I/usr/local/include/mysql `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0` -c BuskaSoftware.c -o ./BuskaSoftware.o
gcc: -lgtk-x11-2.0: linker input file unused since linking not done
gcc: -lgdk-x11-2.0: linker input file unused since linking not done
gcc: -latk-1.0: linker input file unused since linking not done
gcc: -lgdk_pixbuf-2.0: linker input file unused since linking not done
gcc: -lm: linker input file unused since linking not done
gcc: -lpangoxft-1.0: linker input file unused since linking not done
gcc: -lpangox-1.0: linker input file unused since linking not done
gcc: -lpango-1.0: linker input file unused since linking not done
gcc: -lgobject-2.0: linker input file unused since linking not done
gcc: -lgmodule-2.0: linker input file unused since linking not done
gcc: -ldl: linker input file unused since linking not done
gcc: -lglib-2.0: linker input file unused since linking not done


Also.. when I compile a program with:
gcc -Wall -g $1 -o $2 `pkg-config --cflags gtk+-2.0` `pkg-config --libs
gtk+-2.0`

All its clean..

SOMEBODY knows of a MakeFile for gtk2?.. do you know something Rich?

Thanks

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


--
   ___   ___
  / _ | / _ \   Ari Pollak - ari aripollak com - www.aripollak.com
 / __ |/ ___/
/_/ |_/_/




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