title: Make GUI in C++ by Nana
body: <p>I am trying to make a lightweight GUI application in C++ and I was suggested to use the <a href="https://sourceforge.net/projects/nanapro/" rel="nofollow noreferrer">Nana library</a>.</p>
  <p>I downloaded the zip file but I don't know how to proceed. I unzipped it and according to the <a href="https://github.com/qPCR4vir/nana-docs/wiki/Installation" rel="nofollow noreferrer">instructions</a>, I have to</p>
  <blockquote>
  <p>Create a static linkage library solution within a IDE which you use, and add &gt;all the files which are placed in NanaPath/source and in all its sub &gt;directories to the solution. Then compile the solution and you will get a &gt;static linkage file NanaStatic in the path NanaPath/build/bin/IDEName.</p>
  </blockquote>
  <p>(Step Two)</p>
  <p>What I don't understand is that, how to &quot;create a static linkage library&quot;? I am not using any IDEs (and most likely I am not going to). All I have now is the unzipped files. I am using <code>MinGW</code> <code>g++</code> compiler.</p>
  <p>I have already read the following posts (not allowed to post more than two links)</p>
  <blockquote>
  <p>How to create a static library with g++?</p>
  <p>How to compile nana into static lib</p>
  <p>Creating static library from multiple sources</p>
  </blockquote>
  <p>but I could not find a direct way to build and use Nana.</p>
  <p>Would you provide me with some guides? I suppose that I can proceed to build my application if I know how to compile the HelloWorld example (directly quoted here).</p>
  <pre><code>#include &lt;nana/gui/wvl.hpp&gt;
  #include &lt;nana/gui/widgets/label.hpp&gt;
  
  int main()
  {
      using namespace nana;
      form    fm;
      label   lb(fm, fm.size());
      lb.caption(STR(&quot;Hello, World&quot;));
      fm.show();
      exec();
  }
  </code></pre>
  <p>Thanks in advance.</p>
  <p>Update: error (a small part only):</p>
  <p><img src="https://i.stack.imgur.com/0vLXt.png" alt="enter image description here" /></p>