title: gnat gprbuild : how to build a dynamic dll and link with a static c++ library
body: <p>I have a full Ada project I want to build to get a dynamic dll.
  Therefore I have to link it with another static library (myanotherlibrary.lib).</p>
  
  <p>I use this command line :</p>
  
  <pre><code>gprbuild -d "D:\My_grp_project\My_grp_project.gpr"
  </code></pre>
  
  <p>Here the content of the .gpr :</p>
  
  <pre><code>project My_grp_project is
  
    Architecture := "x86";
  
    for Languages use ("Ada");
    for Source_Dirs use (".", "source", "source\common");
    for Library_Dir use "dll\" &amp; Architecture;
    for Library_Ali_Dir use "ali\" &amp; Architecture;
    for Library_Name use "My_grp_project";
    for Library_Kind use "dynamic";
    for Object_Dir use "obj\" &amp; Architecture;
  
    package Linker is
     for Default_Switches ("Ada") use ("-L.", "-lbar");
    end Linker;
  
  end My_grp_project;
  </code></pre>
  
  <p>I put "myanotherlibrary.lib" in the directory "D:\My_grp_project\", but it still doesn't link: "undefined reference to ..."</p>
  
  <p>Could anyone help me please ?</p>
  
  <p>Regards
  Glen</p>