how to compile code using external dll library
<p>I want to compile program with one file test.cpp, which use external library (i have dll and lib). How to do that? </p>

<p>My test.cpp</p>

<pre><code>#include &lt;ExternalLib.h&gt;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#define USE_USB_AUTO_CONNECT 1

int main()
{
   printf ("Characters: %c %c \n", 'a', 65);
   return 0;
}
</code></pre>

<p>ExternalLib is provided by third part company with files: ExternalLib.lib and ExternalLib.dll. There are also files with extension so and a.</p>

<p>When I compile with command:</p>

<pre><code> g++ test.cpp
</code></pre>

<p>I get error:</p>

<pre><code>test.cpp:1:20: fatal error: ExternalLib.h: No such file or directory
 #include &lt;ExternalLib.h&gt;
</code></pre>

<p>Thanks for your help.</p>