On 10/15/07, Stuart Henderson <[EMAIL PROTECTED]> wrote: > On 2007/10/15 09:51, Fernando Braga wrote: > > > > $ pkg-config --libs gtk+-2.0 > > -L/usr/local/lib -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 > > -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpangoft2-1.0 -lpango-1.0 > > -lXinerama -lXi -lXrandr -lXext -lXcursor -lXfixes -latk-1.0 > > -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lcairo > > -lfreetype -lfontconfig -lexpat -lglitz -lpng -lz -lm -lXrender -lX11 > > -lXau -lXdmcp > > $ > > > > $ gcc -o xx xx.c -lgtk-x11-2.0 > > /usr/bin/ld: cannot find -lgtk-x11-2.0 > > collect2: ld returned 1 exit status > > you're missing the "-L/usr/X11R6/lib" (and the other libs that > pkg-config tells you to link against). >
Well, it wasn't exactly -L/usr/X11R6/lib, but the lack of -L/usr/local/lib. Thanks, your tip was extremely helpful. Kind regards,
