Re: MakeFile for GTK2



Huh?.. So.. I need to add a -c?.. do you have a MakeFile gtk2 example?

Please,
Paul Fischer

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
  / __ |/ ___/
/_/ |_/_/


-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBD0GbsERBACUF+PwYILwBGIxHU8zHD/We60+xNNLkWoZtZWyglN2/6MBnwFT
4a9zLoqievkUOu8JMJzX7kwpAAex+QuEIwJ/fziYF2jHfeim5jBPJIstqRrsiNfY
Zzu5mCfpLixpBLsR0xyh4WCsoQug5T9ZmOfmZaePjDvgoIzEmgQYF6OcXwCg0eAz
0mswuXEdGieCoi66FqiXhr0D+gNEslnPNDOdBIp4dUSaHb6o2+2mqF8HVowYmqlo
gK1Gyrd9udc9cCSX7PUV8hxTOX0Dn2y0Gn48uSlwMcFiVrOKh+Cb6YICdwsJX/We
P2CBj5eEJ86Atcek5xs1eQ7B3TrIalONxlL3YOdvaclQfkBp4fAAL6nNwh4adthO
3gmtA/97Jk53uFiGTFB9yWmFxISNfqZ1cGXDc7kpd1BcbQfLOlLQxtj/ytYmi79A
gxMAlhWNJuS+rAUiRy70LiTt/cDJW+NGjAC1Jx/29EadiLRelyfcJkcEbUh6Gdwu
nu/AtETVi9zxQ+PxEe1k7fLNz1NfTSNccWsZb6v441q+6rmtlbQpRmlzY2hlciBQ
YWJsbyAoQ2xhdmUpIDxleGlsaW9uQHlpZmFuLm5ldD6IXAQTEQIAHAUCPQZuwQUJ
AeEzgAQLCgQDAxUDAgMWAgECF4AACgkQ5gCinN3va0VD3ACfXDoWuWqKTVjMpAvq
eP16LTS2d5sAnR+VeDWG5JO0CSPo+iUHNYlFkxzGuM0EPQZuwhADAPR8WyxHF5dn
/NmMlCcb3rRl8aoqLg5ukmvbjY8b43LZfIl9bOghTpF38O8rcvMkXydrRQJi/zRm
M02tUU9gSwGHJW5047hOCceUVssYln2b+rot4KC1E2U4JQrBNU/P8wADB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806HvqDgUEApqqQtKyT19q5e5nmiYWCvXtad9TFvPm
uZo48qZZtxWiTXBheAesKKXtFijlRvPzGj1CWVLw83pL3JfnAAMFAv9djacXHjl8
l2G15T8icVwL6/zMb9JiUHujC/+701bIfiP9hmbu45Wmx2sPXPCrEviIEzulCe8O
tQ3NpL0GSnaSlB+zPgODGXkw6ZN8ic18t+QQt+IiaBZIt90bgMV/PriITAQYEQIA
DAUCPQZxfQUJAeEzgAAKCRDGG/JPl02TfyBnAKCLqCKbdLIeggyBqEXcZtG2BjMF
3QCfemX/Cnku2zbrirqczf1dg2TD/L4=
=Dcpi
-----END PGP PUBLIC KEY BLOCK-----




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