Note that there are some explanatory texts on larger screens.

plurals
  1. POGTK+ Make Cygwin Error
    primarykey
    data
    text
    <p>ive just done so much research and tried so much but nothing works. I am trying to compile a simple hello world program in GTK in Cygwin using make. It gives me error: "lab0.c:1:21: error: gtk/gtk.h: No such file or directory...." I installed cygwin with all packages. I also imported the all in one gtk files into the cygwin folders but it gives me same error. Here are my programs:</p> <p>Lab0.c</p> <pre><code>#include &lt;gtk/gtk.h&gt; int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *label; gtk_init (&amp;argc, &amp;argv); /* create the main, top level, window */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); /* give it the title */ gtk_window_set_title (GTK_WINDOW (window), "Hello World"); /* Connect the destroy signal of the window to gtk_main_quit * When the window is about to be destroyed we get a notification and * stop the main GTK+ loop */ g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); /* Create the "Hello, World" label */ label = gtk_label_new ("Hello, World"); /* and insert it into the main window */ gtk_container_add (GTK_CONTAINER (window), label); /* make sure that everything, window and label, are visible */ gtk_widget_show_all (window); /* start the main loop, and let it rest there until the application is closed */ gtk_main (); return 0; } </code></pre> <p>makefile</p> <pre><code># Makefile for Hello World Program (lab0). all: lab0 lab0: lab0.o g++ -Wall lab0.o -o lab0 lab0.o: lab0.c g++ -Wall -c lab0.c -o lab0.o </code></pre> <p>I really need to get gtk working. Please help me. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload