troubleshooting Question

usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lXft

Avatar of Oscurochu
OscurochuFlag for United States of America asked on
SoftwareCWindows OS
2 Comments1 Solution2453 ViewsLast Modified:
I'm new to programming. I've created a few simple programs on linux, but was never able to create a simple gui on windows. I have installed all of the libraries that cygwin was complaining about... now I get this error:

Jason@jason /cygdrive/c/Documents and Settings/Jason/Desktop
$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
collect2: ld returned 1 exit status

Here is the source code (example code from

#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
    GtkWidget *window;
    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_widget_show  (window);
    gtk_main ();
    return 0;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros