title: How to include gtk/gtk.h in a C file
body: <p>Im very new to development in C and would like to create a GUI using GTK. Ive already downloaded and installed gtk 3.6.4 bundle. Im trying to compile some example code like this:</p>
  
  <pre><code>#include &lt;gtk/gtk.h&gt;
  
  int main(int argc, char *argv[])
  {
      GtkWidget *window;
      gtk_init(&amp;argc, &amp;argv);
      window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
      gtk_widget_show(window);
      gtk_main();
      return 0;
  }
  </code></pre>
  
  <p>I'm really having trouble understanding how to include the header files. I've seen a couple threads which discuss using a pkg-config command like :</p>
  
  <pre><code>pkg-config --cflags --libs gtk+-3.0
  </code></pre>
  
  <p>Where should this code be inserted? It runs on the command window and generates some output but this doesnt solve the error I get in MS visual studio in my code. I apologize in advance for repeating a question but I still am having trouble understanding where this pkg-config code should be run and that is not clear to me from the other responses.</p>