I'm trying to teach myself gtk2+.

To compile a true basic example, I use (debug on):

cc -Wall -g foo.c -o foo `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`

It compiles, but I've got a lot of warnings like this one;

symbol _FT_Glyph_To_Bitmap used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftglyph.o) not from earlier dynamic library /sw/lib/libfreetype.6.dylib(ftglyph.lo)

If I try this (without debugging option):
cc -Wall -c foo.c -o foo `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`


I've got errors like this one:
cc: -lgtk-x11-2.0: linker input file unused because linking not done

Is there a way to tell cc to use the right libraries and to compile without debugging options.


Mich�le <http://micmacfr.homeunix.org/>


------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to