title: gdk (gtk3) in codeblocks on windows 7
body: <p>I have configured gtk3+ (I've changed gtk2+ to gtk3+)   in codeblocks 13.2 on windows 7,
  and created new gtk+ (exmaple) project. This example projcet was compiled and works properly.</p>
  
  <p>Next I included gdk:</p>
  
  <pre><code>#include &lt;gdk/gdk.h&gt;
  </code></pre>
  
  <p>But when I added the lines:</p>
  
  <pre><code>gdk_init(&amp;argc, &amp;argv);
  
  GdkScreen *screen = gdk_screen_get_default();`
  </code></pre>
  
  <p>I got 2 errors:</p>
  
  <blockquote>
    <p>undefined referrence to 'gdk_init' and<br>
    undefined referrence to 'gdk_screen_get_default'</p>
  </blockquote>
  
  <p>Where is the problem? I'm looking for a concrete solution.</p>
  
  <p>compilation log:</p>
  
  <pre><code>||=== Build: Debug in gtk4test (compiler: GNU GCC Compiler) ===|
  C:\myp\gtk4test\main.c||In function 'main':|
  C:\myp\gtk4test\main.c|37|warning: 'gtk_vbox_new' is deprecated (declared at C:\gtk\include\gtk-3.0/gtk/deprecated/gtkvbox.h:60): Use 'gtk_box_new' instead [-Wdeprecated-declarations]|
  C:\myp\gtk4test\main.c|53|warning: unused variable 'screen' [-Wunused-variable]|
  obj\Debug\main.o||In function `main':|
  C:\myp\gtk4test\main.c|52|undefined reference to `gdk_init'|
  C:\myp\gtk4test\main.c|53|undefined reference to `gdk_screen_get_default'|
  ||=== Build failed: 2 error(s), 2 warning(s) (0 minute(s), 0 second(s)) ===|
  </code></pre>