title: pkg-config as command line argument in cmd windows 10 back quote problem
body: <h2>Problem description:</h2>
  
  <p>I am using <a href="/questions/tagged/windows-10" class="post-tag" title="show questions tagged &#39;windows-10&#39;" rel="tag">windows-10</a> OS and from the <a href="/questions/tagged/cmd" class="post-tag" title="show questions tagged &#39;cmd&#39;" rel="tag">cmd</a> window I can use <a href="/questions/tagged/gcc" class="post-tag" title="show questions tagged &#39;gcc&#39;" rel="tag">gcc</a> compiler:</p>
  
  <pre><code>gcc --version
  </code></pre>
  
  <p>returns: </p>
  
  <blockquote>
  <pre><code>gcc (Rev2, Built by MSYS2 project) 9.2.0
  Copyright (C) 2019 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  </code></pre>
  </blockquote>
  
  <p>I want to use GTK+ for creating GUIs and therefore installed GTK+ library using MSYS2. When compiling a small program I need to use <code>pkg-config</code> in back quotes symbols:</p>
  
  <pre><code>gcc -o first_test ../gd_src/first_test.c `pkg-config --libs --cflags gtk+-3.0` 
  </code></pre>
  
  <h2>Problem:</h2>
  
  <p>The <code>gcc</code> compiler throws the following error: </p>
  
  <blockquote>
  <pre><code>gcc: error: `pkg-config: No such file or directory
  gcc: error: gtk+-3.0`: No such file or directory
  gcc: error: unrecognized command line option '--libs'
  gcc: error: unrecognized command line option '--cflags'
  </code></pre>
  </blockquote>
  
  <p>However, just typing: </p>
  
  <pre><code>pkg-config --libs --cflags gtk+-3.0
  </code></pre>
  
  <p>returns: </p>
  
  <blockquote>
  <pre><code>-pthread -mms-bitfields -IC:/msys64/mingw64/include/gtk-3.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/pango-1.0 -IC:/msys64/mingw64/include/fribidi -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/atk-1.0 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/gdk-pixbuf-2.0 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/lib/libffi-3.2.1/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include -LC:/msys64/mingw64/lib -lgtk-3 -lgdk-3 -lz -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi -lsetupapi -lcfgmgr32 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
  </code></pre>
  </blockquote>
  
  <p>I should also point out that using MSYS2 provided cmd window (I do not know how to call it, bash ... ?) there is no such problem.</p>
  
  <h2>My opinion</h2>
  
  <p>I guess is some kind of problem with backquote in the cmd window for Windows 10 ?! How can I solve this? </p>
  
  <h2>update</h2>
  
  <p>Just running</p>
  
  <pre><code>gcc -o first_test ../gd_src/first_test.c pkg-config --libs --cflags gtk+-3.0
  </code></pre>
  
  <p>gives:</p>
  
  <blockquote>
  <pre><code>gcc: error: pkg-config: No such file or directory
  gcc: error: gtk+-3.0: No such file or directory
  gcc: error: unrecognized command line option '--libs'
  gcc: error: unrecognized command line option '--cflags'     
  </code></pre>
  </blockquote>